I previously used some jQuery to read twitter tweets:
$.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); });
Since twitter rejects their API 1.0 and requires OAuth for the 1.1 API, I tried to find out if everything is possible to get the tweet data in the same way.
Just change the url to:
https:
Results in 400 Bad Request response without message.
I know there is 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 to read the user’s timeline in the Twitter 1.1 API?
source share