The id is accessible via
tweets[0].id
If you're doing this in irb, you won't see the id attribute displayed
in the output it shows after running that line but it's there. It's a
known issue with the inspect method on TwitterStruct that trips people
up - definitely not a no-brainer.
Hayes
On Sep 27, 11:57 am, fiskeben <
fiske...@gmail.com> wrote:
> Hi,
>
> I'm pretty new to this so please bear with me if this is a no-brainer,
> but I can't seem to find the id of the tweet in the TweetStruct I get
> in return? My query is tweets =
> client.statuses.user_timeline.json :count => 1. I'm fetching my own
> tweets so screen_name shouldn't be necessary (but I did try and add it
> and it didn't help).
>
> Am I using the wrong method? According tohttp://
dev.twitter.com/doc/get/statuses/user_timeline