Last active
December 14, 2015 22:59
-
-
Save mdobson/5162499 to your computer and use it in GitHub Desktop.
Getting followers for a user in UserGrid
This file contains 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
//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