Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.0 #144

Open
wants to merge 15 commits into
base: 3.0-pre
Choose a base branch
from
Open

3.0 #144

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,15 @@ CLIENT_ID="abc01de2fghijk345lmnop"
CLIENT_SECRET="qr6stu789vwxyz"
````

If 'user authentication' is required, a spotify website will open in your
default browser asking for permission. After granting permission, a new
'localhost' site will be opened on port 8082 with a code in the URL. This code
is caught by Shpotify and is used to get the user-access code and user-refresh
token. From now it is possible to get information linked to your account, like
your playlists, history, devices, etc.
### Authentication to Spotify

Some commands (marked with *) require shpotify to be authenticated via the browser";
To make this work, http://localhost:8082/ needs to be added as a redirect_uri in the 'Application' settings you just created at the developer site.

If 'user authentication' is required, a spotify website will open in your default browser asking for permission. After granting permission, a white page on 'http://localhost:8082/' site will be opened with a token in the url. This token is caught by Shpotify and saved in /var/tmp/shpotify_refresh_token. It's now possible to get information linked to your account, like your playlists, history, devices, etc.

In case of authentication issues it might help to remove /var/tmp/shpotify_refresh_token"
to force re-authentication."

_note: thise page is supposed to automatically close, but that doesn't always
work properly._
Expand Down
Loading