Plan
Premium
Country
USA
Device
Macbook Air M1 (via curl and Postman)
Operating System
MacOs
My Question or Issue
I am attempting to get a list of my saved albums and their respective URLs. To begin, I set up a Postman collection to get the authorization token:
Auth Type: Oauth 2.0
Auth date to : request headers
token name: access_token
grant type: client credentials
access token url: https://accounts.spotify.com/api/token
client id: *
client secret: **
scope: user-library-read
client authentication: send as basic auth header
I get the new access token and set it to the current token to be used for all spotify requests.
Header prefix : Bearer
I test it on publicly available data:
and it works.
Then I try to get my saved albums:
--header 'limit: 50' \
--header 'Authorization: Bearer {the same access token}'
and I get a 500 error. I ALWAYS get a 500 error. The docs told me to alert Spotify if I ever get a 500 because there is something clearly going wrong with the backend code. Please help me fix this.
Thank you!