Hi,
I've been messing around with the api after quite some time and the
first thing I tried was http://api.twitter.com/1/statuses/public_timeline.json
This works perfectly with curl but the odd thing is this doesn't seem
to work for me with either js or ruby, where it returns a 401 with an
error code of 32 ('Could not authenticate you') in the body.
In summary
curl http://api.twitter.com/1/statuses/public_timeline.json
works, but
'http://api.twitter.com/1/statuses/
public_timeline.json'.to_uri.get.deserialise
and
jQuery.ajax({
url: 'http://api.twitter.com/1/statuses/public_timeline.json',
dataType: 'json',
success: function(data, textStatus, xhr){
this.e.log(data);
this.e.log(textStatus);
}
})
don't.
Please note that the Ruby example uses the Wrest gem.
Anyone know what I'm missing here?
Thanks,
Sidu.