mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #146] Unauthorized #89
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#89
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 @GK-Coding on GitHub (Dec 6, 2018).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/146
I keep getting an error saying the following
Fatal error: Uncaught SpotifyWebAPI\SpotifyWebAPIException: Unauthorized.
What could be the problem?
@jwilsson commented on GitHub (Dec 6, 2018):
Hi!
We're gonna need some more to go on. The error indicates your API calls aren't properly authorized, due to a missing access token, an expired access token, etc.
Can you show the code you're using?
@GK-Coding commented on GitHub (Dec 6, 2018):
The auth.php is as follows.
`
The dashboard file where the api token is set is the following.
`
@GK-Coding commented on GitHub (Dec 6, 2018):
I switched to Authorization Code Flow and it worked