Last active
September 26, 2018 06:13
-
-
Save nguyenhose/9dd84ad43303c45b5cbd4128db856784 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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