Skip to content

Commit

Permalink
add simple example
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Mar 13, 2013
1 parent 1a78b24 commit 50b0633
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/simple-get.js
@@ -0,0 +1,13 @@

/**
* Module dependencies.
*/

var request = require('..');

var url = 'https://gist.github.com/visionmedia/9fff5b23c1bf1791c349/raw/3e588e0c4f762f15538cdaf9882df06b3f5b3db6/works.js';

request.get(url, function(err, res){
if (err) throw err;
console.log(res.text);
});

0 comments on commit 50b0633

Please sign in to comment.