mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-26 23:45:49 +03:00
[GH-ISSUE #172] Can you write a more accurate tutorial about the auto-refreshing token? #109
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#109
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 @DarkFighterLuke on GitHub (Nov 11, 2019).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/172
I have not clear in mind how the auto-refresh mechanism works and how to use it.
Can you help me?
Maybe the tips given here can be useful to feed the relative documentation page
@jwilsson commented on GitHub (Nov 12, 2019):
Hi!
Absolutely, I'd be happy to! What do you think is missing right now?
@DarkFighterLuke commented on GitHub (Nov 12, 2019):
I think the code snippets should be more complete. I mean, maybe you can write some other lines of code where at the moments there are comments, making the examples awesome.
Furthermore, I have not really clear how to work with an existing refresh token. So, I haven't at the moment any token in the database: is it necessary to follow that part if I set the autorefresh option since the first login?
Thanks for your timely response!
@jwilsson commented on GitHub (Nov 12, 2019):
Cool! I'll look over the code examples and try co clarify some other things as well.
I can answer your second question right now though. As long has you have a valid refresh token you don't need an access token. Set
auto_refreshtotrueand it'll fetch a new access token for you.@DarkFighterLuke commented on GitHub (Nov 12, 2019):
Thank you @jwilsson !
Nice project! ;)