简体   繁体   中英

Retrieve complete Twitter timeline

we are working on a PHP webservice which is intended to retrieve a user's twitter timeline. Now comes the problem, this is the URL we use: "http://api.twitter.com/1/statuses/user_timeline/$user.json?count=$num&include_rts=1 where $user is the user (^_^) and count the number of tweets to retrieve but it only shows me the tweets generated by the user or the ones reteeted by him. I need ALL tweets that appear on his timeline, means the one he tweets and the ones people he is following tweets. Is there any parametermissing in the URL above or do I have to use another method instead? Thanks in adavance.

I answered a very similar question, it would apply in your case too..

use Twitter Counter as Twitter only supplies you with numbered ID's rather then detailed info about followers.

Counting a Group of Twitter Users' Followers

MyAccount > MyFollowersAccount > followers_count

What I would do is this,

run the Twitter API method GET followers/ids

https://api.twitter.com/1/followers/ids.json?cursor=-1&screen_name=twitterapi

to get the ID's of the followers of screenname X

and then switch over to Twitter Counter which will give you a more detailed list and information about the followers, followers specifically. Also, this could be a way to split up the two calls so you won't be blocked by a rate limit problem on one end.

http://twittercounter.com/pages/api?ref=footer

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM