Last active
August 26, 2019 19:55
-
-
Save healthiq-treyHolterman/a34add21724439f5cb85619e59b0bc1c to your computer and use it in GitHub Desktop.
Spotipy Main Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import spotipy | |
import spotipy.util as util | |
if __name__ == '__main__': | |
username = "<Your Username (or user number) here>" | |
token = util.prompt_for_user_token(username,scope = 'user-top-read',client_id='<Your client ID>',client_secret='<Your client Secret>',redirect_uri='http://localhost/') | |
if token: | |
print("Cool we authenticated") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment