Created
November 12, 2019 14:21
-
-
Save pushmon/04db35294b208d58eb1736fab65349f7 to your computer and use it in GitHub Desktop.
Node Axios
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
// requires axios, install using "npm install axios" | |
const axios = require('axios'); | |
axios.get('http://pshmn.com/eaFnY') | |
.then(response => { | |
console.log(response.data); | |
}).catch(error => { | |
console.log(error); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment