Last active
February 24, 2019 14:13
-
-
Save Saccarab/e483ec78fad7d27b679b4e82a0210e90 to your computer and use it in GitHub Desktop.
request module get request with parameteres
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var request = require('request'); | |
var propertiesObject = { field1:'test1', field2:'test2' }; | |
request({url:url, qs:propertiesObject}, function(err, response, body) { | |
if(err) { console.log(err); return; } | |
console.log("Get response: " + response.statusCode); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment