spotify / web-api-examples

Basic examples to authenticate and fetch data using the Spotify Web API
Apache License 2.0
1.98k stars 1.66k forks source link

client credentials not working for "https://api.spotify.com/v1/me/" endpoint #44

Open henriquecpp opened 4 years ago

henriquecpp commented 4 years ago

I am trying to get the song that is currently playing on my player, using the 'client credentials'. However, when using the sample code, a "username invalid" error is returned. I've tried with several other endpoints related to what was mentioned in the title, and they all return the same error.

How to proceed?

Note: I'm using NodeJS

shawnco commented 4 years ago

I'm running into this too! Would love an answer. Is there a way to tell the /v1/me endpoints which user they're supposed to be for?

dkeer commented 3 years ago

The authorization flow indicates that it is not possible.

Client Credentials | Access User Resources NO