mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #222] Issues with client credentials authorization flow #154
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#154
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 @ericlove02 on GitHub (Jan 28, 2021).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/222
I am trying to run a simple set up to return a track, but am getting this error everytime:
Fatal error: Uncaught SpotifyWebAPI\SpotifyWebAPIException: Unauthorized.The code I have is in auth.php:
and app.php:
All of this is copied from an example from this github, except the $SESSION storing.
@jwilsson commented on GitHub (Jan 28, 2021):
Hi!
I think the issue here is the call to
$api->me()which requires an access token tied to a user which the client credentials flow won't grant. I'd try and remove that line and see if it works better.