mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[PR #44] [CLOSED] Python 3 compat and per-request oauth state #738
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#738
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/spotipy-dev/spotipy/pull/44
Author: @mbirtwell
Created: 3/14/2015
Status: ❌ Closed
Base:
master← Head:master📝 Commits (3)
6172a0ePython 3 compat and per-request oauth state573c600Remove debugging codea8d0fc5Make a couple of utility methods public: 'cos📊 Changes
3 files changed (+34 additions, -30 deletions)
View changed files
📝
requirements.txt(+2 -1)📝
spotipy/__init__.py(+1 -1)📝
spotipy/oauth2.py(+31 -28)📄 Description
Fixes for python 3:
A bit of a cop-out I don't really understand why it wasn't working as a header.
There was something strange happening with the unicode encoding I thought I fixed that
but then I just kept getting invalid client errors back from spotify. Putting it in the body worked
first time though
I've kind of mixed in with this making state a parameter of get_authorize_url and removing state and scope
from get_access_token - I feel bad this should really be another commit.
These parameters aren't required get_access_token according to the spotify docs and what do you know it works
with out.
I also think that it's quite useful if it's convenient to specify the state in the get_authorize_url function
this is mostly because I'm using that to stash a next page url.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.