Skip to content

Instantly share code, notes, and snippets.

@mikeal
Created August 8, 2012 21:59
Show Gist options
  • Save mikeal/3299184 to your computer and use it in GitHub Desktop.
Save mikeal/3299184 to your computer and use it in GitHub Desktop.
var request = require('request')
request.get('http://api.twitter.com/1/users/show.json?screen_name=mikeal', {json:true}, function (e, r, doc) {
console.log(doc)
})
request.get('https://api.twitter.com/1/statuses/user_timeline.json?include_entities=true&include_rts=true&screen_name=mikeal', {json:true}, function (e, r, doc) {
console.log(doc)
})
request.get('https://ajax.googleapis.com/ajax/services/search/news?v=1.0&q=barack%20obama', {json:true}, function (e, r, doc) { console.log(doc) })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment