尝试将AuthSub与Google Health结合使用时出现“范围是错误还是丢失”错误?
|
我正在尝试使用AuthSub向Google Health请求令牌。它说范围是坏的或丢失的。我已经仔细检查过了,范围对我来说很好。我尝试用日历替换范围,但没有收到该错误。
这是一个代码片段
next = \'http://localhost:8080/auth\'
# h9 scope for development
#scope = \'https://www.google.com/health/feeds/\'
scope = \'https://www.google.com/calendar/feeds/\'
#scope = \'https://www.google.com/h9/feeds/\'
url_format = \'https://www.google.com/accounts/AuthSubRequest?next=%s&scope=%s&secure=%d&session=%d\'
auth_sub_url = url_format % (next, scope, 0, 1)
#auth_sub_url = service.GenerateAuthSubURL(next, scope, secure = secure, session = session)
self.response.out.write(\'<a href=\"%s\">Authorize Access to Your Google Health Account</a>\' % auth_sub_url)
没有找到相关结果
已邀请:
1 个回复
催备南菠亨