spotipy-dev / spotipy

A light weight Python library for the Spotify Web API
http://spotipy.readthedocs.org
MIT License
4.92k stars 955 forks source link

Suggestion for "Client Credentials Flow" section in Docs. #952

Open AdriaPadilla opened 1 year ago

AdriaPadilla commented 1 year ago

Hi! After proposing this library to some python students to learn, I have seen that "Client Credentials Flow" documentation section, is not clear. I think it would be more easy to understand for newbies if:

SPOTIPY_CLIENT_ID = ''
SPOTIPY_CLIENT_SECRET = ''

auth_manager = SpotifyClientCredentials(SPOTIPY_CLIENT_ID,SPOTIPY_CLIENT_SECRET)
sp = spotipy.Spotify(auth_manager=auth_manager)

The current example uses "export" for the credentials, and I think this is confusing.

Thanks!

stephanebruckert commented 1 year ago

Would love a PR for that!