mirror of
https://github.com/jwilsson/spotify-web-api-php.git
synced 2026-04-27 07:55:49 +03:00
[GH-ISSUE #106] CronJob Problem #63
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#63
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 @tma-bhr on GitHub (Nov 13, 2017).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/106
Hello I am trying to make an app which is getting users Current Track and set it is a status in a differenet platform.
Is there a way to save some "token" and make this code called after x minutes. Because Spotify uses oAuth user must log in and login again for using app.
I will use $api->getMyCurrentTrack() function to get current track. But also I need to make setAccesstoken which I am going to save in DB.
What can be auth method for this ?
@jwilsson commented on GitHub (Nov 15, 2017):
Hi!
After authenticating the user the first time, you'll get a refresh token which can later be used to refresh the access token without any user interaction.
So, save the refresh token together with the access token in your DB and refresh when necessary.