[GH-ISSUE #952] Suggestion for "Client Credentials Flow" section in Docs. #572

Open
opened 2026-02-27 23:23:25 +03:00 by kerem · 2 comments
Owner

Originally created by @AdriaPadilla on GitHub (Mar 24, 2023).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/952

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!

Originally created by @AdriaPadilla on GitHub (Mar 24, 2023). Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/952 Hi! After proposing this library to some python students to learn, I have seen that ["Client Credentials Flow"](https://spotipy.readthedocs.io/en/latest/?badge=latest#client-credentials-flow) documentation section, is not clear. I think it would be more easy to understand for newbies if: ```python 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!
Author
Owner

@stephanebruckert commented on GitHub (Mar 30, 2023):

Would love a PR for that!

<!-- gh-comment-id:1491022149 --> @stephanebruckert commented on GitHub (Mar 30, 2023): Would love a PR for that!
Author
Owner

@Kapo1123 commented on GitHub (Dec 8, 2024):

I would be happy to help with this, if this is not yet being fixed

<!-- gh-comment-id:2526498229 --> @Kapo1123 commented on GitHub (Dec 8, 2024): I would be happy to help with this, if this is not yet being fixed
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotipy#572
No description provided.