[twitter-dev] Re: Account Owner's last tweet

2009-10-06 Thread Damon Clinkscales

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.

user
...
  status
created_atTue Oct 06 05:14:52 + 2009/created_at
id4648622123/id
textGood day. Goodnight./text
sourcelt;a href=quot;http://www.atebits.com/quot;
rel=quot;nofollowquot;gt;Tweetielt;/agt;/source
truncatedfalse/truncated
in_reply_to_status_id/in_reply_to_status_id
in_reply_to_user_id/in_reply_to_user_id
favoritedfalse/favorited
in_reply_to_screen_name/in_reply_to_screen_name
geo/
  /status
/user

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

-damon
-- 
http://twitter.com/damon


[twitter-dev] Re: Account Owner's last tweet

2009-10-06 Thread ryan alford

The user timeline returns only the user's tweets for me.



On Oct 6, 2009, at 1:27 AM, 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 @?

 Thanks!


[twitter-dev] Re: Account Owner's last tweet

2009-10-06 Thread JK

Both API calls show replies from followers. I just want the tweets
posted by the owner of the twitter account.
For example, take a look at TO - http://twitter.com/users/show/terrellowens.xml

At the time I am posting this, the last status shows:
text@Speaker1234 wassup? Hv a good day/text  which was posted by a
follower.

How do you you go about just obtaining the tweets for just the account
owner?

On Oct 5, 11:01 pm, Damon Clinkscales sca...@pobox.com wrote:
 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/showcould 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
 seehttp://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.

 user
 ...
   status
     created_atTue Oct 06 05:14:52 + 2009/created_at
     id4648622123/id
     textGood day. Goodnight./text
     sourcelt;a href=quot;http://www.atebits.com/;
 rel=quot;nofollowquot;gt;Tweetielt;/agt;/source
     truncatedfalse/truncated
     in_reply_to_status_id/in_reply_to_status_id
     in_reply_to_user_id/in_reply_to_user_id
     favoritedfalse/favorited
     in_reply_to_screen_name/in_reply_to_screen_name
     geo/
   /status
 /user

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

 seehttp://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-user_tim...
 for more info

 -damon
 --http://twitter.com/damon- Hide quoted text -

 - Show quoted text -


[twitter-dev] Re: Account Owner's last tweet

2009-10-06 Thread Michael Steuer

Actually, the account/verify_credentials call also returns the most recent
status for the authenticated user. Plus, as a benefit, it's a non-rate
limited call. 


On 10/6/09 9:11 AM, JK jam...@slip.net wrote:

 
 Both API calls show replies from followers. I just want the tweets
 posted by the owner of the twitter account.
 For example, take a look at TO -
 http://twitter.com/users/show/terrellowens.xml
 
 At the time I am posting this, the last status shows:
 text@Speaker1234 wassup? Hv a good day/text  which was posted by a
 follower.
 
 How do you you go about just obtaining the tweets for just the account
 owner?
 
 On Oct 5, 11:01 pm, Damon Clinkscales sca...@pobox.com wrote:
 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/showcould 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
 seehttp://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.
 
 user
 ...
   status
     created_atTue Oct 06 05:14:52 + 2009/created_at
     id4648622123/id
     textGood day. Goodnight./text
     sourcelt;a href=quot;http://www.atebits.com/;
 rel=quot;nofollowquot;gt;Tweetielt;/agt;/source
     truncatedfalse/truncated
     in_reply_to_status_id/in_reply_to_status_id
     in_reply_to_user_id/in_reply_to_user_id
     favoritedfalse/favorited
     in_reply_to_screen_name/in_reply_to_screen_name
     geo/
   /status
 /user
 
 And no, /user_timeline does not contain tweets from anyone other than
 the specified user.
 
 seehttp://apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-user_tim...
 for more info
 
 -damon
 --http://twitter.com/damon- Hide quoted text -
 
 - Show quoted text -




[twitter-dev] Re: Account Owner's last tweet

2009-10-06 Thread ryan alford
At the time I am reading this, when viewing his actual page, his last tweet
is shown as Takin of
And when viewing the link you gave, that's the same tweet that I see.

Also, the tweet you referenced was posted by TO in reply to a follower.
 That's TO's actual tweet.  Look at his page.

Ryan

On Tue, Oct 6, 2009 at 12:11 PM, JK jam...@slip.net wrote:


 Both API calls show replies from followers. I just want the tweets
 posted by the owner of the twitter account.
 For example, take a look at TO -
 http://twitter.com/users/show/terrellowens.xml

 At the time I am posting this, the last status shows:
 text@Speaker1234 wassup? Hv a good day/text  which was posted by a
 follower.

 How do you you go about just obtaining the tweets for just the account
 owner?

 On Oct 5, 11:01 pm, Damon Clinkscales sca...@pobox.com wrote:
  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/showcould 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
  seehttp://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.
 
  user
  ...
status
  created_atTue Oct 06 05:14:52 + 2009/created_at
  id4648622123/id
  textGood day. Goodnight./text
  sourcelt;a href=quot;http://www.atebits.com/;
  rel=quot;nofollowquot;gt;Tweetielt;/agt;/source
  truncatedfalse/truncated
  in_reply_to_status_id/in_reply_to_status_id
  in_reply_to_user_id/in_reply_to_user_id
  favoritedfalse/favorited
  in_reply_to_screen_name/in_reply_to_screen_name
  geo/
/status
  /user
 
  And no, /user_timeline does not contain tweets from anyone other than
  the specified user.
 
  seehttp://
 apiwiki.twitter.com/Twitter-REST-API-Method:-statuses-user_tim...
  for more info
 
  -damon
  --http://twitter.com/damon- Hide quoted text -
 
  - Show quoted text -


[twitter-dev] Re: Account Owner's last tweet

2009-10-06 Thread JK

Got it. So all the tweets in a user_timeline or in the status /users/
show api call do originate from the owner of the twitter account
(could be a new tweet or a reply).

Thanks you for all your comments!

On Oct 6, 10:44 am, Damon Clinkscales sca...@pobox.com wrote:
 On Tue, Oct 6, 2009 at 11:11 AM, JK jam...@slip.net wrote:

  Both API calls show replies from followers. I just want the tweets
  posted by the owner of the twitter account.
  For example, take a look at TO 
  -http://twitter.com/users/show/terrellowens.xml

  At the time I am posting this, the last status shows:
  text@Speaker1234 wassup? Hv a good day/text  which was posted by a
  follower.

  How do you you go about just obtaining the tweets for just the account
  owner?

 JK,

 You're confusing tweets FROM others with tweets TO others.  The tweets
 for user_timeline which begin with @ are the specified user's replies
 TO other people.  If you don't want to see those replies they've sent
 TO other people, then you'll need to scan recent tweets and look for
 the last tweet that does not begin with @.

 -damon
 --http://twitter.com/damon


[twitter-dev] Re: Account Owner's last tweet

2009-10-06 Thread Michael Steuer

Again, if your user is logged in and you're really just looking for HIS LAST
tweet (current status), use verify_credentials... It's a free API call


On 10/6/09 5:19 PM, JK jam...@slip.net wrote:

 
 Got it. So all the tweets in a user_timeline or in the status /users/
 show api call do originate from the owner of the twitter account
 (could be a new tweet or a reply).
 
 Thanks you for all your comments!
 
 On Oct 6, 10:44 am, Damon Clinkscales sca...@pobox.com wrote:
 On Tue, Oct 6, 2009 at 11:11 AM, JK jam...@slip.net wrote:
 
 Both API calls show replies from followers. I just want the tweets
 posted by the owner of the twitter account.
 For example, take a look at TO
 -http://twitter.com/users/show/terrellowens.xml
 
 At the time I am posting this, the last status shows:
 text@Speaker1234 wassup? Hv a good day/text  which was posted by a
 follower.
 
 How do you you go about just obtaining the tweets for just the account
 owner?
 
 JK,
 
 You're confusing tweets FROM others with tweets TO others.  The tweets
 for user_timeline which begin with @ are the specified user's replies
 TO other people.  If you don't want to see those replies they've sent
 TO other people, then you'll need to scan recent tweets and look for
 the last tweet that does not begin with @.
 
 -damon
 --http://twitter.com/damon