php - How to retrieve more than 200 tweets -
i know how retrieve more 200 tweets twitter page. know limited 200 read can retrieve more,im using php , using following line of code 200 tweets
$xmldata = 'http://twitter.com/statuses/user_timeline/bbcnews.xml?count=200';
could show me example code in how this?
thanks
with twitter api can 200 posts per page. have add &page=x page of tweets (there hard limit of 3200 posts)
view api documentation here
https://dev.twitter.com/docs/api/1/get/statuses/user_timeline
an example of api call json
https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=twitterapi&count=200&page=2
and example xml call
https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=twitterapi&count=200&page=2
so suggest if want 3200 posts set script in function change page number each time
Comments
Post a Comment