diff --git a/examples/show_album.py b/examples/show_album.py index e492b3c..acd310f 100644 --- a/examples/show_album.py +++ b/examples/show_album.py @@ -2,6 +2,7 @@ # shows album info for a URN or URL import spotipy +from spotipy.oauth2 import SpotifyClientCredentials import sys import pprint @@ -11,6 +12,7 @@ else: urn = 'spotify:album:5yTx83u3qerZF7GRJu7eFk' -sp = spotipy.Spotify() +client_credentials_manager = SpotifyClientCredentials() +sp = spotipy.Spotify(client_credentials_manager=client_credentials_manager) album = sp.album(urn) pprint.pprint(album)