Hi all, I have a doubt related to Google health API authentication. For the first time if my web user has not yet linked his profile we redirect him to the Google health login page to accept the user credentials and accept to link his profile to my web application. Then What should I want to update his profile at the later stage. As he already linked his profile we need not redirect him to the Google health login page. How can we get the user data with out login again?
Do we need to use the same token ID (by revokeSession method in API) every time that was sent by the Google during linking profile. Also if the users needs to unlink the profile from my web application what API method should I need to call to unlink the profile. Please help me. Thanks and regards, Sateesh B. On Jul 11, 3:22 pm, "Eric (Google)" <[email protected]> wrote: > On Jul 6, 7:03 pm, MobiPulse MobiPulse <[email protected]> wrote: > > > Hi > > > I have a web application that can interact with Google Health and upload > > information to it. I am going to send my application to Google Health (H9) > > for review. But before that I would like to know couple of things: > > > 1. Lets say, I provide google health with my next URL > > ashttp://www.testserver.com/myapp/googleHealth. When I click on "Link to > > Profile" of my web application on the Data Providers list in Google Health, > > I get redirected to the above mentioned next URL. My question here is, how > > can I extract the token information from Google in my next URL? Will it be > > sent as a key-value pair in the query string of the URL? > > Your next URL will be something > likehttp://www.testserver.com/myapp/googleHealth?token=DQAADKEDE > > The libraries can help with extracting the > token:http://code.google.com/apis/gdata/authsub.html#AuthSubTokenExtractJava > > > > > 2. When coming from Google Health to my web application, will I get routed > > to an intermediate page where I should "Accept" the linking of my profile? > > Does Google avoid displaying that page, if my profile was already linked to > > Google Health? > > There' no in intermediate page. Google will redirect to your next > URL. > You should only be sending users to the AuthSub approval page once. > After that, they've already granted access to your app and you > should save their session token locally, referencing it whenever > they return. > > > > > Please let me know, if you need more information on my queries. > > > Thanks & Regards > > Parankush --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Health Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/googlehealthdevelopers?hl=en -~----------~----~----~----~------~----~------~--~---
