Created
May 31, 2016 08:45
-
-
Save InstaRobot/51fb1959ba1a3189de170d19615feb23 to your computer and use it in GitHub Desktop.
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
-(NSArray *)getGroupsForUser:(NSString *)userID { | |
NSArray *array = [[NSArray alloc] init]; | |
VKRequest *request = [VKApi requestWithMethod:@"groups.get" | |
andParameters:@{@"user_id": userID, @"filter": @"admin", @"extended": @"1"} | |
andHttpMethod:@"GET"]; | |
[request executeWithResultBlock:^(VKResponse *response) { | |
NSLog(@"%@", response.json); | |
//TODO: completeBlock | |
// array = response.json; | |
} errorBlock:^(NSError *error) { | |
}]; | |
return array; | |
} // getGroupsForUser | |
// Здесь пример определения групп пользователя где он является админом |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment