I wrote a small JavaScript a couple of years ago that grabbed a users (mine) most recent tweet and then parsed it out for display including links, date etc.
It used this json call to retrieve the tweets and it no longer works.
http://twitter.com/statuses/user_timeline/radfan.json
It now returns the error:
{"errors":[{"message":"Sorry, that page does not exist","code":34}]}
I have looked at using the api version (code below) but this requires authentication which I would rather avoid having to do as it is just to display my latest tweet on my website which is public anyway on my profile page:
http://api.twitter.com/1/statuses/radfan.json
I haven’t kept up with Twitter’s API changes as I no longer really work with it, is there a way round this problem or is it no longer possible?
As you can see in the documentation, using the REST API you’ll need OAuth Tokens in order to do this. Luckily, we can use the Search (which doesn’t use OAuth) and use the
from:[USERNAME]operatorExample:http://search.twitter.com/search.json?q=from:marcofolio
Will give you a JSON object with tweets from that user, where
will give you the last tweet.