get twitter friends using my specific app

馋奶兔 提交于 2019-12-25 05:24:14

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!