Why does my code return an error finding devices?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have some code to get my token
and this code to get my available players
def find_player(token):
url = "https://api.spotify.com/v1/me/player/devices"
headers = {
"Authorization": f"Bearer {token}"
}
response = requests.get(url, headers=headers)
print(response.content)
print(response.status_code)
and this code to get my available players
def find_player(token):
url = "https://api.spotify.com/v1/me/player/devices"
headers = {
"Authorization": f"Bearer {token}"
}
response = requests.get(url, headers=headers)
print(response.content)
print(response.status_code)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page