Twitter的API:让追随者+99 [英] Twitter API: Get Followers +99

查看:230
本文介绍了Twitter的API:让追随者+99的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用Twitter的API(和OAuth)如果我是要求用户追随者,(状态/跟随)我将返回只有99结果。

Using the twitter API (and OAuth) if i was to call for the user followers, (statuses/followers) i would be returned only 99 results.

有没有一种方法,我可以返回99,然后再次调用开始,然后跟随100通过这种风格直到调用已返回追随者总数的循环?

Is there a way i can return 99, then call again starting at follower 100 then looping through this style of calling until the total number of followers has been returned?

或者只是返回所有的追随者?

Or just return ALL followers?

推荐答案

您需要描述的在API documrnation 。例如。指定光标= -1要求的第一页,然后使用第一个响应返回next_cursor值:

You need to specify cursor parameter as described in the API documrnation. E.g. specify cursor=-1 to request the first page and then use a next_cursor value returned in the first response:

  http://twitter.com/statuses/followers/barackobama.xml?cursor=-1
  http://twitter.com/statuses/followers/barackobama.xml?cursor=1300794057949944903

这篇关于Twitter的API:让追随者+99的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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