michaelhelmick / python-tumblpy

A Python Library to interface with Tumblr v2 REST API & OAuth
BSD 2-Clause "Simplified" License
122 stars 36 forks source link

Fixed issue with oauth token decoding #31

Closed wmantly closed 9 years ago

michaelhelmick commented 9 years ago

Hi, thanks for this. Does request_tokens with the current code return nothing after ran through parse_qsl and decoded? Is that the reason for moving it into the authorized_tokens = ... line?

wmantly commented 9 years ago

*correction; parse_qsl returns a dict object with its keys and values byte encoded.

{b'oauth_token': b'YkvWUL7PeZ39IEofCW3w0pAzQt9ffiWldo4D9EmWb4rYQR33EQ', b'oauth_token_secret': b'YH8PmK9b2XdNeIRl3ZJDF7HtQkTuuu66mDbolmR7uV2vlygsgO', b'oauth_callback_confirmed': b'true'}

Im sorry i did not provide more information, im still new at GIT.

wmantly commented 9 years ago

Here is my pip3 freeze

Django==1.7.2
dj-database-url==0.3.0
dj-static==0.0.6
django-redis-cache==0.13.0
django-toolbelt==0.0.1
gunicorn==19.1.1
oauthlib==0.7.2
psycopg2==2.5.4
py-oauth2==0.0.10
pyoauth2==0.0.4
redis==2.10.3
requests==2.5.1
requests-oauthlib==0.4.2
simplejson==3.6.5
static3==0.5.1
twython==3.2.0
wmantly commented 9 years ago

Please see new pull request, #32