从iOS的Twitter帐户获取关注者和关注者 [英] Get followers and following from twitter account in iOS

查看:143
本文介绍了从iOS的Twitter帐户获取关注者和关注者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每个人..

如何从iOS用户登录的Twitter帐户中获取所有关注者和关注者?
有没有api?

How can I get all followers and following from a user's logged in twitter account in iOS? Is there any api for that?

请帮助我..

推荐答案

是的,有一个API。请参阅

Yes there is an API for that. see this.

我建议使用JSON API,因为它很容易用objective-c框架解析。查看我链接到的页面上的第四部分,在朋友和关注者下,您会看到有关于访问关注者和关注者的请求。

I recommend using the JSON API as it is very easy to parse with the objective-c framework. Look at the fourth section on the page I linked to, under 'Friends and Followers' and you'll see there are requests you can make to access followers and following.

例如,这就是你如何得到某人的追随者:

For example, this is how you get someone's followers:

http://api.twitter.com/1/followers/ids.json?id=myuser

这返回一个用户ID的JSON数组,您可以将其与其他API一起使用以获取其用户信息。

This returns a JSON array of user IDs which you can use in conjunction with other APIs to get their user info.

希望这有助于您入门

这篇关于从iOS的Twitter帐户获取关注者和关注者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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