I need to call the propublica API the call example they have is using cURL:
-H "X-API-Key: PROPUBLICA_API_KEY"
How can i rewrite it in axios.
I tried this and does not work, get an undefined response.
axios.get('"https://api.propublica.org/congress/v1/members/{house}/{FL}/current.json/X-API-Key/APIKEY '),
]).then(axios.spread((response1, response2) => {
console.log(response1.data.url);
})).catch(error => {
console.log(error);
}); ```