NSMutableDictionary *params = [[NSMutableDictionary alloc] init];
[params setObject:@"My Special Group for Testing" forKey:@"description"];
[params setObject:@"open" forKey:@"visibility"];
[params setObject:@"open" forKey:@"publish_access"];
NSURLRequest *r = [[LQSession savedSession] requestWithMethod:@"POST" path:@"/group/create" payload:params];
[[LQSession savedSession] runAPIRequest:r completion:^(NSHTTPURLResponse *response, NSDictionary *responseDictionary, NSError *error) {
NSLog(@"Response for creating My Special Group for Testing: %@ error:%@", responseDictionary, error);
}];
Response for creating My Special Group for Testing: {
"group_token" = ab4NEKC0p;
// now get info about the group
NSString* path = [NSString stringWithFormat:@"/group/info/:ab4NEKC0p"];
NSURLRequest *r = [[LQSession savedSession] requestWithMethod:@"GET" path:path payload:nil];
[[LQSession savedSession] runAPIRequest:r completion:^(NSHTTPURLResponse *response, NSDictionary *responseDictionary, NSError *error) {
TFLog(@"Response for info about group My Special Group for Testing: %@ error:%@", responseDictionary, error);
}];
It looks like you're new here. If you want to get involved, click one of these buttons!