I have a very simple snippet of code which was working till yesterday and has stopped working today?
var url = 'http://search.twitter.com/search.json?q=dogs?callback=?';
var reddit = 'http://reddit.com/r/technology.json?callback=?';
$.getJSON(url, function(data) {
console.log(data);
});
//Error - GET http://search.twitter.com/search.json?q=dogs?callback=jQuery172082220473815687_1365829251904&_=1365829251949 403 (Forbidden)
Here is the source - http://jsfiddle.net/ZeuKp/2
Can anyone tell why am I getting a 403 error. Have I exceed the rate on the API, which seems highly unlikely as I just switched on my local server?
Thanks!
On January 14th, Twitter changed it so that only SSL/HTTPS connections are allowed when using their API.
403 errors are common signs that you haven't switched to SSL/HTTPS yet, in your app.
http://www.zdnet.com/twitter-enforces-ssl-encryption-for-apps-connecting-to-its-api-7000025138/