开发者

Get more than 20 last messages

开发者 https://www.devze.com 2022-12-20 02:07 出处:网络
Twitter API documentation says that I can get only 20 last messages (proof link).I\'m just wond开发者_StackOverflowering if there is any other possibility to get more messages, for example - \"all the

Twitter API documentation says that I can get only 20 last messages (proof link). I'm just wond开发者_StackOverflowering if there is any other possibility to get more messages, for example - "all the messages from specific point in time".


I think you can specify count, which can be upto 200 and number of pages as well which allows you to retrieve upto 3200 status messages. And since_id allows you to retrieve messages after that particular message.

http://twitter.com/statuses/friends_timeline.xml?count=100&page=5&since_id=23323


Check the parameters in the link you've pasted. There's a parameter count that allows you to get up to 200 messages in one call. If you want more then that you can change since_id parameter value to get even older entries or use page_id.


http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-user_timeline

See the count parameter.

For example:

http://twitter.com/statuses/user_timeline.xml?screen_name=someuser&count=50

That would get 50 messages, instead of the default 20.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号