mirror of
https://github.com/c0de-archive/spotipy.git
synced 2025-07-30 14:00:18 +00:00
Add client credentials flow
This commit is contained in:
10
examples/client_credentials_flow.py
Normal file
10
examples/client_credentials_flow.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from spotipy.oauth2 import SpotifyClientCredentials
|
||||
import spotipy
|
||||
import pprint
|
||||
|
||||
client_credentials_manager = SpotifyClientCredentials()
|
||||
sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager)
|
||||
|
||||
search_str = 'Muse'
|
||||
result = sp.search(search_str)
|
||||
pprint.pprint(result)
|
Reference in New Issue
Block a user