axios.get('https://mysite.ru/api/1.0/test', {
headers: {
'Authorization': 'Bearer {key}',
'Content-Type': 'application/json'
}
})
.then(function (response) {
console.log(response);
})
.catch(function (error) {
console.log(error);
});