I have just ran into a strange behavior when retrieving the latest
tweet using statuses/user_timeline.
The following URL returns as expected my latest tweet:
http://twitter.com/statuses/user_timeline/cjoudrey.rss?count=1
However, when you change the output to JSON something very odd
happens:
http://twitter.com/statuses/user_timeline/cjoudrey.json?count=1
The API returns a blank array [].
What is even odder is when I poll the API with this URL:
http://twitter.com/statuses/user_timeline/cjoudrey.json?count=2
It only returns my 2nd newest tweet.
Somehow, the most latest tweet is nowhere to be found when using JSON
output.
Best regards,
Christian
If you put count=2 and your timeline is RT, RT, Tweet it will return
an empty array while it should simply return you an array containing
the single Tweet.
On Feb 12, 9:33 pm, Abraham Williams <4bra...@gmail.com> wrote:
> That is because retweets are not returned in the user_timeline method.
>
> http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-user_tim...
>
> Abraham