Created
March 5, 2012 17:00
-
-
Save mbmccormick/1979285 to your computer and use it in GitHub Desktop.
Sample MobileClientLibrary call
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void Main(string[] args) | |
{ | |
WebServiceClient client = new WebServiceClient("YOUR_API_KEY"); | |
client.FetchAllUsersCompleted += new RequestCompletedEventHandler(client_FetchAllUsersCompleted); | |
client.FetchAllUsers(); | |
} | |
private static void client_FetchAllUsersCompleted(object sender, RequestCompletedEventArgs e) | |
{ | |
List<User> data = e.Data as List<User>; | |
foreach (var user in data) | |
{ | |
Console.WriteLine(user.Name); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment