问题
I am integrating twitter api on iphone device with specific application. I want to get list of followers using the same app.
Is it possible to get list of followers who are using the same app?
Thanks,
Jim.
回答1:
Use this api call in your twitter api to get your followers in twitter
- (NSString *)getFollowersIncludingCurrentStatus:(BOOL)flag
{ NSString *path = [NSString stringWithFormat:@"statuses/followers.%@", API_FORMAT];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity:0];
if (!flag) {
[params setObject:@"true" forKey:@"lite"]; // slightly bizarre, but correct.
}
return [self _sendRequestWithMethod:nil path:path queryParameters:params body:nil
requestType:MGTwitterFollowerUpdatesRequest
responseType:MGTwitterUsers];
}
来源:https://stackoverflow.com/questions/10908702/get-twitter-friends-using-my-specific-app