Hello twitter,
I am in need of help I am try to make a ajax request but I keep getting an error (https://api.twitter.com/1.1/search/tweets.json?callback=jQuery19108726453273557127_1367708256558&q=jQuery&_=1367708256559 400 (Bad Request) ).
This is my code: $.ajax({ type: ‘GET’, dataType: ‘jsonp’, url: ‘https://api.twitter.com/1.1/search/tweets.json’, data: { q: “jQuery” } });
not sure what I am doing wrong can someone help me??
Thanks.
API 1.1 requires authentication for all requests, which makes using it in client-side code via jQuery difficult and/or insecure and unrecommended.
Is it possible to use PHP to authenticate and then use javascript API calls after that? If so, how?
I have the same problem (400 Bad request) with this code: var usuario = ‘username’; $.getJSON(“http://api.twitter.com/1.1/statuses/user_timeline/"+usuario+".json?count=1&callback=?", function(data) { $(”#ultimo_tweet").html(data[0].text); alert(data[0].text); }); Is there other way to get the tweets?, I just need to consume the tweets from my web site.
var usuario = ‘username’; $.getJSON(“http://api.twitter.com/1.1/statuses/user_timeline/"+usuario+".json?count=1&callback=?", function(data) { $(”#ultimo_tweet").html(data[0].text); alert(data[0].text); });
has anyone pure jquery/javascript solution to call auth search api ?