Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios get request

const axios = require('axios');

async function makeGetRequest() {

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

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

makeGetRequest();
Source by zetcode.com #
 
PREVIOUS NEXT
Tagged: #axios #request
ADD COMMENT
Topic
Name
7+8 =