mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
Add multiple accounts example, solves #446
This commit is contained in:
parent
f43fd568d6
commit
37b6b5fd80
10
examples/multiple_accounts.py
Normal file
10
examples/multiple_accounts.py
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
import spotipy
|
||||||
|
import spotipy.util as util
|
||||||
|
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
|
while True:
|
||||||
|
username = input("Type the Spotify user ID to use: ")
|
||||||
|
token = util.prompt_for_user_token(username, show_dialog=True)
|
||||||
|
sp = spotipy.Spotify(token)
|
||||||
|
pprint(sp.me())
|
||||||
Loading…
Reference in New Issue
Block a user