Plan
Free/Premium
Country
Australia
Device
MacBook Pro (16-inch, 2021)
Operating System
OSX
My Question or Issue
I am using the web API from React using axios to get player information successfully by calling:
but I get 403 errors when trying to get top/artists or recently-played data:
if (token)
{
const { data } = await axios.get("https://api.spotify.com/v1/me/player/recently-played", {
headers: {
Authorization: `Bearer ${token}`
}
})
console.log('recent data', data);
setRecentJsonData(data);
}
Is anyone able to shed some light on this?