diff options
| author | Fuwn <[email protected]> | 2023-01-02 20:50:07 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-01-02 20:50:07 -0800 |
| commit | 880edc2b643f07ef5557d49c52d182805ade0c71 (patch) | |
| tree | 55f67ba74d1e01d52fb2946c3e3700f0a61959ba | |
| parent | fix(spotify.py): headers (diff) | |
| download | rubys_song_skipper-880edc2b643f07ef5557d49c52d182805ade0c71.tar.xz rubys_song_skipper-880edc2b643f07ef5557d49c52d182805ade0c71.zip | |
fix(spotify.py): headers
| -rw-r--r-- | rubys_song_skipper/spotify.py | 4 |
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) |