Skip to content

Instantly share code, notes, and snippets.

@wong2 wong2/weibo_token.py
Created Apr 25, 2012

Embed
What would you like to do?
get weibo access token
from config import APP_SECRET, APP_KEY
from weibopy.auth import OAuthHandler
CALLBACK = ""
auth = OAuthHandler(APP_KEY, APP_SECRET, CALLBACK)
url = auth.get_authorization_url()
print "open this in the browser: " + url
code = raw_input("input the code: ")
auth.get_access_token(code)
# the sdk is: https://github.com/wuyuntao/weibopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.