get twitter friends using my specific app

2019-09-18 06:17发布

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条回答
唯我独甜
2楼-- · 2019-09-18 07:05

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];

}

查看更多
登录 后发表回答