Created
May 10, 2011 23:54
-
-
Save derrickj/965641 to your computer and use it in GitHub Desktop.
AuthSub request works fine with Google Calendar, but not Google Health
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
# replace this last line with whatever method you use to write out to the page | |
self.response.out.write('<a href="%s">Authorize Access to Your Google Health Account</a>' % auth_sub_url) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment