Skip to content

CAQ/SinaWeiboAuth2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Sina Weibo helper for OAuth 2.0 -- Automatically renews the token using MyAuth2.

Weibo API is from http://code.google.com/p/sinaweibopy/

You need to first create a file <app id>.token, such as "12345.token", a one-line file, containing:
<app id> \t <app secret> \t <auth call back url> \t <authed token> \t <expired time> \t <user name> \t <password>

For initialization, the <authed token> can be anystring. And set <expired time> to -1.

Example:

------
from myauth2 import MyAuth2

mauth = MyAuth2('your app id')

# get public timeline
response = ma2.client.get.statuses__public_timeline(count=20)
------

Author: CAQ9 @ weibo.com

About

A helper for Sina Weibo's OAuth2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published