feat: 🚧 Starting working on Spotify authentification for playlist creation
This commit is contained in:
@ -23,4 +23,13 @@ def searchSpotify(spotifySearch, limit=10):
|
||||
|
||||
def createPlaylist(playlistName):
|
||||
#TODO: Implement this function
|
||||
pass
|
||||
pass
|
||||
|
||||
def spotifyLogin():
|
||||
"""
|
||||
This function is used to login to spotify to get the user token
|
||||
:return: user token
|
||||
"""
|
||||
credentials = spotipy.oauth2.SpotifyClientCredentials(client_id=os.getenv("client_id"), client_secret=os.getenv("client_secret"))
|
||||
spotify_token = credentials.get_access_token()
|
||||
return spotify_token
|
Reference in New Issue
Block a user