Skip to content

Instantly share code, notes, and snippets.

@pushmon
Created November 12, 2019 14:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save pushmon/04db35294b208d58eb1736fab65349f7 to your computer and use it in GitHub Desktop.
Node Axios
// 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