You need to use the next_cursor_str and page through the results. They don't
want to slam out the data for 3200 tweets all at once.
-edward.
On Feb 9, 2011, at 6:26 AM, johnnygri wrote:
Hi, I'm trying to figure out how to fetch the maximum number of
tweets.
From http://dev.twitter.com/doc/get/statuses/user_timeline:
This method is can only return up to 3200 statuses. If include_rts is
set only 3200 statuses, including retweets if they exist, can be
returned.
It seems logical that the 'count' parameter allows you to specify a
number of tweets to fetch, up to the maximum states (3200). Except,
the docs read:
Specifies the number of records to retrieve. Must be less than or
equal to 200.
http://api.twitter.com/1/statuses/user_timeline.json?count=5;
I'm wondering if that's a type and that the value must infact be less
than or equal to 3200 ?
Maybe I'm reading this wrong, but I can't see a simple way to do a
first-time request, number of tweets available being unknown, and to
specify that you'd like to simply fetch as many as the API will allow.
Am I barking up the wrong tree here?
Cheers
John
--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
http://groups.google.com/group/twitter-development-talk
Regards,
Edward Hotchkiss
edw...@edwardhotchkiss.com
http://www.edwardhotchkiss.com/
--
Twitter developer documentation and resources: http://dev.twitter.com/doc
API updates via Twitter: http://twitter.com/twitterapi
Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list
Change your membership to this group:
http://groups.google.com/group/twitter-development-talk