Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some API Endpoints do require extra scopes. #496

Open
christosk92 opened this issue Jun 5, 2022 · 0 comments
Open

Some API Endpoints do require extra scopes. #496

christosk92 opened this issue Jun 5, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@christosk92
Copy link

Describe the bug
Not really a bug report, but this may help some people who are struggling with 403 requests on some endpoints.

To Reproduce
I was trying to get the top tracks for a user, call:

GET https://api.spotify.com/v1/me/top/tracks?offset=0&limit=10&time_range=short_term

Authorized with a bearer token using librespot with the "playlist-read" scope. But then I was hit with a "403"...
It turns out I had to add the extra "user-top-read" scope (next to playlist-read), when fetching the token. (As found here)

My idea is that scopes work based on hierarchy, and for a while "playlist-read" was the highest scope? "user-top-read" is a fairly new feature/scope, so it may be higher than "playlist-read"...

Screenshots/Stracktraces/Logs
Screenshots if applicable, stacktrace and log is a crash occurred.

Without "user-top-read" scope:
image

With "user-top-read" scope:
image

Version/Commit
Version used or commit pulled if compiled locally.

@christosk92 christosk92 added the bug Something isn't working label Jun 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant