mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-26 23:45:49 +03:00
[GH-ISSUE #274] How to set scopes when using Client Credentials method #200
Labels
No labels
bug
docs
enhancement
enhancement
enhancement
feedback wanted
good first issue
help wanted
help wanted
help wanted
invalid
pull-request
question
question
upstream
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-web-api-php#200
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @beratgashii on GitHub (Mar 17, 2024).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/274
Hi @jwilsson,
I am trying to create a simple script to return only $api->getMyCurrentTrack(); by using client credentials but without scopes it returns always HTTP ERROR 500 I checked the docs but i was unable to find a way to make this work?
Thanks,
B
@beratgashii commented on GitHub (Mar 17, 2024):
I am trying to do everything on the same file and the same request, is this okay!
@jwilsson commented on GitHub (Mar 17, 2024):
Hey!
If you want to use scopes and access user information you need to use the Authorization Code or Proof Key for Code Exchange (PKCE) (PKCE is the recommended one for new applications) flows. The Client Credentials flow can only be used to fetch information about songs, artists, and so on.
Hope this clears things up!