Hi Matei,

The simplest way to accomplish this would be a single GET request.

GET
http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=twitterapi&count=1&include_rts=true

If you weren't interested in processing retweets, you could omit the
include_rts=true parameter, but I would bump the count to at least 5 since
disincluded retweets still apply to the count parameter's calculations.

Taylor


On Tue, Sep 14, 2010 at 9:51 AM, Matei <mad.doroba...@gmail.com> wrote:

> Hi all,
>
> I was wondering what the best way to get a user's latest status is.
> Right now I am using the verify_credentials call to do it, since I
> don't really know the user Id from the OAuth flow. The trouble with
> this approach is that the result doesn't always include the status. Is
> there a better way of doing this, maybe I'm totally missing something
> obvious.
>
> BTW, the project I'm on uses heavy JavaScript and a C# backed to proxy
> Twitter API calls.
>
> Cheers,
> Matei
>
> --
> 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?hl=en
>

-- 
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?hl=en

Reply via email to