seanyo / Hello-I-Tweet-As

Name Tags are Back...in Twitter Form! Twitter's the New Name Tag!
itweet.as
2 stars 2 forks source link

JSON retrieval gives an empty list if the user's last tweet is a retweet #5

Closed ccharles closed 13 years ago

ccharles commented 13 years ago

If we try to generate a nametag for a user whose last tweet is a retweet we get a blank nametag. The twitter.com/status/user_timeline URI used to retrieve the user's avatar, name, etc. returns an empty list.

As of right now this can be demonstrated with

http://twitter.com/status/user_timeline/ChrisUnfiltered.json?count=1

but of course this may change in the future.

ccharles commented 13 years ago

It looks like all of the information that we're using can be retrieved via the users/show Twitter REST API call, e.g.

http://api.twitter.com/1/users/show/ChrisUnfiltered.json

This has the benefit of working for users whose last tweet was a retweet and also users with private profiles.

ccharles commented 13 years ago

The users/show method may still work, but it isn't just a drop-in replacement for the status/user_timeline method. I'm getting mismatched origin errors with users/show.

ccharles commented 13 years ago

Resolved in commit 7dd2c24398c7979a64de3b1337b6ef8364c49a1d