feat: 🚧 Continue working on spotify integration

This commit is contained in:
2024-07-01 01:01:35 +02:00
parent 9a1e02c90a
commit 8b8579e988
7 changed files with 16 additions and 213 deletions

View File

@ -36,4 +36,7 @@ def create_spotify_oauth():
client_secret=os.getenv("client_secret"),
redirect_uri=url_for('callback', _external=True),
scope='playlist-modify-public'
)
)
def get_spotify_username():
return spotipy.Spotify(auth_manager=SpotifyOAuth(client_id=os.getenv("client_id"), client_secret=os.getenv("client_secret"), redirect_uri=url_for('callback', _external=True))).me()