Skip to content

Instantly share code, notes, and snippets.

@gaurish
Created March 26, 2011 19:22
Show Gist options
  • Save gaurish/888555 to your computer and use it in GitHub Desktop.
Save gaurish/888555 to your computer and use it in GitHub Desktop.
Nodejs
var http = require('http');
var options = {
host: 'api.twitter.com',
port: 80,
path: '/1/statuses/public_timeline.json'
};
http.get(options, function(res) {
console.log('Got response ' + res.statusCode);
}).on('error', function(e) {
console.log('Got Error ' + e.message);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment