Add multiple accounts example, solves #446

This commit is contained in:
Stephane Bruckert 2020-03-12 00:53:36 +00:00
parent f43fd568d6
commit 37b6b5fd80

View 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())