I want to make a request to the twitter api. This is the example provided in the documentation (https://dev.twitter.com/docs/api/1/get/search):
GET:
http://search.twitter.com/search.json?q=blue%20angels&rpp=5&include_entities=true&result_type=mixed
There is no example request on the documentation. How would the request for this url be including an alert with data response?
Look if this helps, I made an example for you:
Basically the HTML code contains 2 inputs. one for the button and one for the query string.
After pressing the search button, you’ll send a request to twitter asking for 5 results (rpp) containing the query string.
Here’s the javascript for this page:
The trick is the jQuery.param() function that you’ll pass the params for the search/request
See it running here:
http://jsfiddle.net/73L4c/6/