Skip to content

Instantly share code, notes, and snippets.

@anstaendig
Created May 4, 2015 10:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anstaendig/529c266da10f70d19e45 to your computer and use it in GitHub Desktop.
Save anstaendig/529c266da10f70d19e45 to your computer and use it in GitHub Desktop.
request example
//Load the request module
var request = require('request');
//Lets configure and request
request({
url: '', //URL to hit
method: 'POST'
}
}, function(err, response, body) {
if(!err && response.statusCode == 200) {
var data = JSON.parse(body);
} else {
console.log(err);
};
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment