mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #173] no preview_urls with authorization using the client credentials flow #114
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#114
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 @cdlx23 on GitHub (Nov 15, 2019).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/173
Hi :)
First of all thanks a lot for the wrapper, I love it and it's very useful to me!
For some reason I don't get the preview_urls for tracks with authorization using the client credentials flow. Using the authorization code flow it works fine. All other values like id, popularity etc. work just fine, just preview_url is empty. I tested it with getTrack(s) and getAlbum(s) Any idea what this could be?
Example request:
$track = $api->getAlbum( '3msNbiI057b6ypzeOTjgxJ', [ 'market' => 'de' ] );Thanks a lot!!
@jwilsson commented on GitHub (Nov 16, 2019):
Hey!
Thank you for the kind words! :)
According to Spotify the
preview_urlfield can benullfor a variety of reasons. My guess is that you need a user's info to see thepreview_urlvalues.