Unable To Get Oauth "request Token" While Working With The Tumblr Api Using Python
I've been using libraries to handle OAuth so far, but lately I've been digging deeper trying to understand the underlying OAuth process. Currently, I'm trying to connect to Tumblr
Solution 1:
Solved it after making just 2 simple changes in the above code:
normalized_http_method = 'GET'
#not POSToauth_header = 'OAuth realm="http://www...'
# The word "Authorization" is unnecessary. I had taken this out earlier as listed in "Things I've tried without any success", but the error listed in (1) threw me off track. With (1) solved, I could see how "Authorization" was indeed unnecessary.
The OAuth Request token Tumblr sent me when I finally got it right:
oauth_token=mbRUgyDkPePfkEztiLELMqUl1kyNXEcaTCCwpb7SoXDF9mhiTF&oauth_token_secret=5pXllXGKA8orAaUat1G7ckIfMfYup8juMBAgEELUkeMZoC3pv6&oauth_callback_confirmed=true
↑
This is a one-time only token and I've listed it here just for the sake of completeness.
Post a Comment for "Unable To Get Oauth "request Token" While Working With The Tumblr Api Using Python"