Skip to content

Instantly share code, notes, and snippets.

@mbmccormick
Created March 5, 2012 17:00
Show Gist options
  • Save mbmccormick/1979285 to your computer and use it in GitHub Desktop.
Save mbmccormick/1979285 to your computer and use it in GitHub Desktop.
Sample MobileClientLibrary call
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