On Mon, Oct 5, 2009 at 11:52 PM, JK <jam...@slip.net> wrote:
> What api do I use to identify the last or latest tweet of the account
> owner?
> http://twitter.com/users/show could contain a tweet by a follower.
> http://twitter.com/statuses/user_timeline - states that it returns the
> 20 most recent statuses posted from the authenticating user but it
> shows status updates made by all people.
> For example,
> my twitter account is John
> Jim posts a tweet
> John posts a tweet
> Mary posts a tweet
> I want to be able to grab John's tweet ONLY.
> Do I have to go through the user_timeline and filter out anything
> beginning with a @?

/users/show is what you want
see http://apiwiki.twitter.com/Twitter-REST-API-Method:-users%C2%A0show

For example:

curl "http://twitter.com/users/show/jack.xml";

The response contains an embedded status element which is the latest
tweet for the person.

    <created_at>Tue Oct 06 05:14:52 +0000 2009</created_at>
    <text>Good day. Goodnight.</text>
    <source>&lt;a href=&quot;http://www.atebits.com/&quot;

And no, /user_timeline does not contain tweets from anyone other than
the specified user.

see http://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-user_timeline
for more info


Reply via email to