Some cleanup

This commit is contained in:
ritiek
2018-01-12 21:52:43 +05:30
parent 8c6cc1cc22
commit 621e1eb21e
3 changed files with 7 additions and 9 deletions

View File

@@ -18,6 +18,8 @@ def generate_token():
token = credentials.get_access_token()
return token
# token is mandatory when using Spotify's API
# https://developer.spotify.com/news-stories/2017/01/27/removing-unauthenticated-calls-to-the-web-api/
token = generate_token()
spotify = spotipy.Spotify(auth=token)