Skip to content
Browse files

add simple example

  • Loading branch information...
1 parent 1a78b24 commit 50b06336f956b32adb38e826bf36a7c3ca65627b @tj tj committed
Showing with 13 additions and 0 deletions.
  1. +13 −0 examples/simple-get.js
View
13 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.
Something went wrong with that request. Please try again.