-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refresh Token ([OT]--a demo followed) #21
Comments
I commited a simpler weibo-test. https://github.com/xuanqinanhai/snsapi/blob/master/simple-weibo-test.py [
{
"platform": "SinaWeiboStatus",
"text_length_limit": 140,
"user_id": "",
"channel_name": "test_weibo",
"auth_info": {
"save_token_file": "(default)",
"callback_url": "https://snsapi.ie.cuhk.edu.hk/aux/auth.php",
"cmd_fetch_code": "(default)",
"cmd_request_url": "(default)"
},
"app_secret": "96bcc1e00268d7e415c32212b3e197fb",
"open": "yes",
"app_key": "3644324674"
}
] and also checked a detail timeout document in weibo auth document ps:I added something in talk page,waiting for your reply. |
Hi, For the demo test script:
For the
|
|
Sorry for the confusion of "tests" folder. It is the unit test of snsapi, which is intended to be run by developers. For union tests, one needs to operate in |
The reason for not automatically trigger re-authorization is because we have different use cases. If you tap into the auth code of |
This thread is off-topic. The title is modified for future search. The demand of support of
|
I just checked the data structure returned by QQ and Renren (*.save files). The two platforms have refresh_token in it. It's better to refresh the access_key when it's near timeout. Then we don't have to prompt user's browser every time. I'm not sure whether the SP really implement the function of refresh. Check it out later.
Sina is the big brother... One day timeout; no refresh_token returned....
@uxian
The text was updated successfully, but these errors were encountered: