[Vuejs]-GetResponse 400 Bad Request

0👍

This works for me:

(async() => {

  const url = 'https://api.getresponse.com/v3/accounts';

  const payload = await axios({
    method: 'get',
    url,
    headers: {
      "X-Auth-Token": "api-key 12345*****",
      "content-type": "application/json"
    }    
  });

  console.log("payload", payload.data);

})()

Leave a comment