mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-06-19 09:13:53 +00:00
Update create_playlist.py
Added scope to token request
This commit is contained in:
parent
4c2c1d763a
commit
1ea4d475b5
@ -17,7 +17,8 @@ else:
|
|||||||
print("Usage: %s username playlist-name playlist-description" % (sys.argv[0],))
|
print("Usage: %s username playlist-name playlist-description" % (sys.argv[0],))
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
token = util.prompt_for_user_token(username)
|
scope = "playlist-modify-public"
|
||||||
|
token = util.prompt_for_user_token(username, scope)
|
||||||
|
|
||||||
if token:
|
if token:
|
||||||
sp = spotipy.Spotify(auth=token)
|
sp = spotipy.Spotify(auth=token)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user