spotify-web-api-node
spotify-web-api-node copied to clipboard
Getting authorized to retrieve getfollowedartists etc, the readme examples don't help
Hi All,
have been using this api succesfully for retrieving albums/artists etc without problems for a while now.
Now I want to interact with the (my) user data (saved artists/albums etc) too but none of the readme samples help me at all.
In my existing code I call function to set the access token before I retrieve data and can get an album.
calling another url that sets the access token, I can still get the album but my response on the getfollowed artists is then: body: { error: { status: 403, message: 'Insufficient client scope'
Any input is appreciated. Have been struggling with this for about 4 hours already
As soon as I get that working I will worry about setting the authorization code seamlessly for different users (right now I will be the only one using the app.)
Kind Regards,
Gerrit Kuilder
Got it working by using https://glitch.com/edit/#!/spotify-authorization-code
Only wondering if I can set the scopes and store and re-use the authorization code in one step, rather than have to go through depending on user interaction to set the scopes, get the authorisation url, set the access token
I would like to be able to interact with followed artists, saved albums and create playlist without user interaction.