summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-01-02 20:50:07 -0800
committerFuwn <[email protected]>2023-01-02 20:50:07 -0800
commit880edc2b643f07ef5557d49c52d182805ade0c71 (patch)
tree55f67ba74d1e01d52fb2946c3e3700f0a61959ba
parentfix(spotify.py): headers (diff)
downloadrubys_song_skipper-880edc2b643f07ef5557d49c52d182805ade0c71.tar.xz
rubys_song_skipper-880edc2b643f07ef5557d49c52d182805ade0c71.zip
fix(spotify.py): headers
-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)