I had previously used some jQuery to read tweets on twitter:
$.ajax('https://api.twitter.com/1/statuses/user_timeline.json', {
crossDomain: true,
data: {
screen_name: 'twitterapi',
count: 5
},
dataType: 'jsonp'
}).done(function (tweets) {
console.log(tweets);
});
As twitter is deprecating their 1.0 API, and requiring OAuth for the 1.1 API, I've been trying to figure out if it's still possible to get tweet data in the same manner.
Simply changing the url to:
https://api.twitter.com/1.1/statuses/user_timeline.json
Results in a 400 Bad Request
response with no message.
I know there's a twitter tool to create an OAuth signature for a request, but I'm not sure how to use it with a JSONP request, or even if it can be used with a JSONP request.
Is it still possible in the Twitter 1.1 API to read a user's timeline?