Making a request
Axios
const axios = require('axios');
import axios from 'axios';
//GET
axios.get("/event", { params: { api_key })
.then(response => {
console.log(response.data.url);
})
.catch(error => {
console.log(error);
});
//POST
axios.post('/user', {
firstName: 'Fred',
lastName: 'Flintstone'
})
.then((response) => {
console.log(response);
})
.catch((error) => {
console.log(error);
});Error Handling
Auth Bearer
Setting up base
Multiple Requests
Sending Blob
Advanced Axios
Requests
Fetch
Advanced Fetch
Async await
Creating URL Queries
OG Fundamental
Parse JSON Response
XMLHttpRequest States
In JQuery
Last updated