404 when trying to access streams
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Plan
Free
Country
UK
Device
MacBook Air (Retina, 13-inch, 2020)
Operating System
Monterey 12.4
My Question or Issue
Hi there
I've been successfully accessing the audio-features part of the API, but trying to access the streams I'm getting a 404. I have provider access, so not sure what I'm doing wrong. I am quite new to this though, so may well be something rudimentary!
Thanks
Here's part of my code, have substituted the keys, url and uri
CLIENT_ID='<id>'
CLIENT_SECRET='<secret>'
AUTH_URL = '<url>'
auth_response = requests.post(AUTH_URL, {
'grant_type': 'client_credentials',
'client_id': CLIENT_ID,
'client_secret': CLIENT_SECRET,
})
auth_response_data = auth_response.json()
access_token = auth_response_data['access_token']
authheaders = {
'Authorization': 'Bearer {token}'.format(token=access_token)
}
r = requests.get('<url><uri>', headers=authheaders)
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page