Answers for "axios get get response"

3

how to make request with axios

const axios = require('axios');

async function makeGetRequest() {

  let res = await axios.get('http://webcode.me');

  let data = res.data;
  console.log(data);
}

makeGetRequest();
Posted by: Guest on August-10-2020
0

axios

const axios = require('axios').default;

// axios.<method> will now provide autocomplete and parameter typings
Posted by: Guest on December-06-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language