python - 'The Scope Was bad or missing' error trying to use AuthSub with google health? -


i'm trying use authsub request token google health. says scope bad or missing. i've double checked, , scope looks me. i've tried replacing scope calendar, , don't error.

here's code snippet

next = 'http://localhost:8080/auth' # h9 scope 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 google health account</a>' % auth_sub_url) 

i'm not familiar google health, did googling , need register site first:

https://services.google.com/fb/forms/googhealthdevelopers/

it takes week registration go through. meanwhile can test against h9 sandbox url like:

https://h9.google.com/h9/authsub?next=http://localhost:8080/auth&scope=https://www.google.com/health/feeds/&secure=0&session=1

so apparently if try use google health through https://www.google.com/accounts/authsubrequest before registering site, error message. how supposed test against localhost if have register site first, have no idea.


Comments

Popular posts from this blog

Cursor error with postgresql, pgpool and php -

delphi - ESC/P programming! -

c++ - error: use of deleted function -