mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-27 08:35:49 +03:00
[GH-ISSUE #359] Hello everyone, beginner here! util.prompt_for_user_token #208
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#208
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 @JeanPaiva42 on GitHub (Feb 28, 2019).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/359
Is there a way I can get the redirected link automatically? Also, how can I get the user id when running? Sorry if this is a repost. Thanks for any replies.
@CraigMcAulay1101 commented on GitHub (Apr 22, 2019):
There isn't any way to get the redirect link automatically, as the user has to authorize the app's scopes. Although through using flask, I've managed to automate this slightly by using flask's request object to get the current URL (once the redirect has taken place) and then using the oauth2 object from spotipy to recreate the other steps in util.prompt_for_user_token()
Hope this helps.
@JeanPaiva42 commented on GitHub (Apr 30, 2019):
I'm going to try this, thanks!
@stephanebruckert commented on GitHub (Jan 1, 2020):
@Craig115's answer seems right!
From the official app, go to your profile and do "Copy profile link". Your user ID is part of the link.
Hope this helps. Closing for now but feel free to reopen if needed.