mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #514] util.prompt_for_user_token() and GUI #309
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#309
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 @filipfigzalski on GitHub (Jun 16, 2020).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/514
Hello,
I'm writing an app controlling spotify playback, which has GUI. Unfortunately util.prompt_for_user_token() is using console to enter URL. I've also tried using automatic authorization process, but for some reason it isn't working.
Is there some other way to authorize user?
@IdmFoundInHim commented on GitHub (Jun 19, 2020):
You can use a
SpotifyOAuthobject.Also, if you are making your app available to untrusted clients, be wary about exposing your client secret.
@filipfigzalski commented on GitHub (Jun 22, 2020):
Thank you!
Just two minor fixes:
should be:
from spotipy.oauth2 import SpotifyOAuthand
was throwing error so I used:
token = auth.get_access_token(code)['access_token']@IdmFoundInHim commented on GitHub (Jun 22, 2020):
What was the error on the second one?
as_dict=True(the default forget_access_token) is deprecated, so it is not reliable.@stephanebruckert commented on GitHub (Jun 30, 2020):
This looks solved