Does Client Credential flow allow access to user tracks & playlists?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Premium
United States
Python 3.8
MacOS
My Question or Issue:
Trying to pull my current tracks and playlists via Web API. Running locally using Python 3.8 requests but this will eventually become an AWS Lambda function.
Tried to use the Authorization Code flow but that seemed to require a real-user login via redirect URI (from how I experienced & understood it). Because I don't want to have to manually login or validate the login process, I'm trying Client Credentials flow.
I've included my TextGetToken.txt file which successfully gets me an access token using the Client ID & Secret gotten from my spotify developer app. So I have an access token.
I also included my TextPrintTracks.txt file which tries to use this access token to get a list of my saved tracks, but I get a 401 error when I make this GET request to the /me/tracks endpoint.
Please let me know if I can use the Client Credentials flow for this, and if so, anything you notice wrong with my requests. Thank you!
- Labels:
-
authentication
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page