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 like
http://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
-~----------~----~----~----~------~----~------~--~---