summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rubys_song_skipper/spotify.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/rubys_song_skipper/spotify.py b/rubys_song_skipper/spotify.py
index 5c9fe67..05d5b99 100644
--- a/rubys_song_skipper/spotify.py
+++ b/rubys_song_skipper/spotify.py
@@ -18,10 +18,12 @@ def bearer(code):
"Authorization": f"{CLIENT_ID}:{CLIENT_SECRET}",
"Accept": "application/json",
"Content-Type": "application/x-www-form-urlencoded",
- "grant_type": "authorization_code",
"code": code,
"redirect_uri": "https://rss.rubyyyrl.twitch.fuwn.lol/callback",
},
+ data={
+ "grant_type": "authorization_code",
+ },
)
print(authorization.text)