let axios = require(`axios`)
axios.post(someUrl)
let data = {
yourKey: yourValue
}
axios.post(someUrl, data)
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
}