carterwward commited on
Commit ·
e9d85b7
1
Parent(s): 015e6a7
change api init
Browse files- src/spotipy_utils.py +2 -1
src/spotipy_utils.py
CHANGED
|
@@ -30,7 +30,8 @@ def get_sp_client():
|
|
| 30 |
Returns:
|
| 31 |
Spotify API Client: API Client to be used for queries not regarding user information.
|
| 32 |
"""
|
| 33 |
-
|
|
|
|
| 34 |
|
| 35 |
|
| 36 |
class SpotifyTrack:
|
|
|
|
| 30 |
Returns:
|
| 31 |
Spotify API Client: API Client to be used for queries not regarding user information.
|
| 32 |
"""
|
| 33 |
+
auth_manager = SpotifyClientCredentials(client_id=CLIENT_ID,client_secret=CLIENT_SECRET)
|
| 34 |
+
return spotipy.client.Spotify(auth_manager=auth_manager)
|
| 35 |
|
| 36 |
|
| 37 |
class SpotifyTrack:
|