Skip to content

Instantly share code, notes, and snippets.

@nguyenhose
Last active September 26, 2018 06:13
Show Gist options
  • Save nguyenhose/9dd84ad43303c45b5cbd4128db856784 to your computer and use it in GitHub Desktop.
Save nguyenhose/9dd84ad43303c45b5cbd4128db856784 to your computer and use it in GitHub Desktop.
const request = require('request')
const url = 'https://letsrevolutionizetesting.com/challenge.json'
function getResult() {
request.get(url, {json: true}, function(response, error, body) {
if (error) {
console.error(err)
} else {
console.log('result: ', body)
}
})
}
getResult()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment