Skip to content

Instantly share code, notes, and snippets.

@irae
Created June 29, 2011 08:15
Show Gist options
  • Save irae/1053405 to your computer and use it in GitHub Desktop.
Save irae/1053405 to your computer and use it in GitHub Desktop.
Minimal Twitter json
var client = new XMLHttpRequest();
var doThings = function(data){
console.dir(JSON.parse(data));
};
client.onreadystatechange = function(){
if (this.readyState == 4) {
doThings(this.responseText);
}
};
client.open("GET", "http://search.twitter.com/search.json?q=from:tw2113");
client.send();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment