As promised I am going to talk about getting the authorization from
OAuth2. OAuth2 is a popular authorization protocol used by website like
twitter, and other social websites in their APIs. Basic OAuth2
authorization involves two stages: first obtain authorization code,
second obtain access_token.
Python Demo
Taking social website Douban as an example
Just remember that first stage uses HTTP method GET, second stage uses
HTTP method POST (that means you have to pass your encoded v2 to data,
instead of params!!!)
Comments
comments powered by Disqus