I am trying to ger ajax response from below web url of twitter to but it returns always error.No way I am able to get it work.
URL is http://search.twitter.com/search.json?q=&ands=google?callback=?
I have added a callback at end.I suspect it's cross domain request so I have tried with crossDomain:true also.
So code is as below:
$(document).ready(function () { var weblink = 'http://search.twitter.com/search.json?q=&ands=google?callback=?'; $.ajax({ url: weblink, dataType: 'jsonp', success: function (data) { alert('ok'); // this statement doesn't show up }, error: function (msg) { // failed request; give feedback to user alert('error occured' + msg); console.log(msg); } }); $.getJSON("http://search.twitter.com/search.json?q=&ands=google?callback=?", function (result) { alert('success'); }); }); Here is the screenshot when I debug on F12.
Does anyone have any idea what's wrong happened.
The Twitter REST API v1 is no longer active. Please migrate to API v1.1