Answers for "how to send search term with axios get"

5

how to send search term with axios get

const axios = require('axios');

// Equivalent to `axios.get('https://httpbin.org/get?answer=42')`
const res = await axios.get('https://httpbin.org/get', { params: { answer: 42 } });

res.data.args; // { answer: 42 }
Posted by: Guest on December-02-2020

Code answers related to "how to send search term with axios get"

Code answers related to "Javascript"

Browse Popular Code Answers by Language