Skip to content

Instantly share code, notes, and snippets.

@mdobson
Last active December 14, 2015 22:59
Show Gist options
  • Save mdobson/5162499 to your computer and use it in GitHub Desktop.
Save mdobson/5162499 to your computer and use it in GitHub Desktop.
Getting followers for a user in UserGrid
//Get the first 30 users that fred is following
UGQuery *query = [[UGQuery alloc] init];
[query addURLTerm:@"limit" equals:@"30"];
UGClientResponse *response = [usergridClient getEntityConnections: @"users"
connectorID:@"fred"
connectionType:@"following"
query:query];
//This array contains the entities fred is following
NSArray * following = [response.response objectForKey:@"entities"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment