Sending Requests

Add Package: axios
Include Module:
let axios = require(`axios`)
Send Request:
axios.post(someUrl)
Send Data: Send a request with data:
let data = {
  yourKey: yourValue
}

axios.post(someUrl, data)
Process Response: Send a request with data and process the response:
let data = {
  yourKey: yourValue
}

axios.post(someUrl, data).then(processResponse)

function processResponse(response) {
  // write code here to do something with the response
  // you can get what was returned with response.data
  // you can get what was sent with response.config.data
}
More Info: npm page