- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi All,
I am trying to build an embedded application that will simply add the current song playing to a specified playlist [playlist_id]. The issue that I'm running in is that when I follow the guide on generating Authentication tokens, I'm getting "Insufficient Client Scope" error.
I use:
https://accounts.spotify.com/authorize?client_id=<my_client_id>&scopes=playlist-read-private%20playl...
URL to generate an access token that will work for the given scopes.
Once I get to the Auth page and authorize the app, I obtain the Auth token for the next step.
After getting the token, I run:
curl -H "Authorization: Basic <base64(client_id:client_secret)>" -d grant_type=authorization_code -d code=<auth_token> -d redirect_uri=http%3A%2F%2Flocalhost%3A8080 https://accounts.spotify.com/api/token
Command in order to get the JSON containing `access_token`, `token_type`, `expires_in` and `refresh_token`.
Issue comes when I try to use the endpoints for adding songs to the playlist and I try to pass it either the `access_token` generated in this response.
Or the `access_token` generated by running:
Solved! Go to Solution.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page