使用我的特定应用程序获取Twitter朋友 [英] get twitter friends using my specific app

查看:56
本文介绍了使用我的特定应用程序获取Twitter朋友的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将iPhone设备上的twitter api与特定应用程序集成在一起.我想使用同一应用获取关注者列表.

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?

谢谢,
吉姆.

推荐答案

在您的twitter api中使用此api调用以在twitter中吸引您的关注者

Use this api call in your twitter api to get your followers in twitter

- (NSString *)getFollowersIncludingCurrentStatus:(BOOL)flag

{NSString * path = [NSString stringWithFormat:@"statuss/followers.%@",API_FORMAT];

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

}

这篇关于使用我的特定应用程序获取Twitter朋友的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆