Hi Paul,

I have downloaded the code from the

http://code.google.com/p/google-apps-reporting-api-client/downloads/list/
reporting-api-java-1.0.1.zip<http://code.google.com/p/google-apps-reporting-api-client/downloads/detail?name=reporting-api-java-1.0.1.zip&can=2&q=>

in the above code they used clientlogin with the parameters
accountType,email,password and service and source. The url with parameters
are

https://www.google.com/accounts/ClientLogin

String postContent
="accountType=HOSTED&Email="+URLEncoder.encode(adminEmail)+"&Passwd="+URLEncoder.encode(adminPassword)+"&service="+URLEncoder.encode("health")+"&source="+URLEncoder.encode("agastha-agastha11-v1");<http://code.google.com/p/google-apps-reporting-api-client/downloads/detail?name=reporting-api-java-1.0.1.zip&can=2&q=>

using the above param getting 400 server response instead of the token. But
i tried the below param
<http://code.google.com/p/google-apps-reporting-api-client/downloads/detail?name=reporting-api-java-1.0.1.zip&can=2&q=>String
postContent 
="accountType=HOSTED<http://code.google.com/p/google-apps-reporting-api-client/downloads/detail?name=reporting-api-java-1.0.1.zip&can=2&q=>
*_OR_GOOGLE*<http://code.google.com/p/google-apps-reporting-api-client/downloads/detail?name=reporting-api-java-1.0.1.zip&can=2&q=>
&Email="+URLEncoder.encode(adminEmail)+"&Passwd="+URLEncoder.encode(adminPassword)+"&service="+URLEncoder.encode("health")+"&source="+URLEncoder.encode("agastha-agastha11-v1");<http://code.google.com/p/google-apps-reporting-api-client/downloads/detail?name=reporting-api-java-1.0.1.zip&can=2&q=>

got a token and passed that to reporting api, not getting the report.

Could you please explain, which auth. and reporting API  we have used to get
the heath service report. Its little urgent, please help us.

Thanks,
Velmurugan


<http://code.google.com/p/google-apps-reporting-api-client/downloads/detail?name=reporting-api-java-1.0.1.zip&can=2&q=>




On Sat, May 29, 2010 at 1:21 AM, Paul (Google) <[email protected]> wrote:

> Hi Velmurugan,
>
> The tokens distributed for ClientLogin are independent from those for
> AuthSub and OAuth.  Therefore, you won't be able to check a
> ClientLogin token using the AuthSubTokenInfo service.  I believe that
> the accountType parameter is used only by Google Apps.  The parameter
> isn't necessary for authenticating users using their @gmail.com
> accounts.  If you want the make sure that a CientLogin token is still
> valid, try using it to make a request to a Health service.  If it has
> been revoked, your should receive an authentication error.  The are
> only valid for two weeks, or until a user has reset their password.
>
> In order to ensure that support responses are able to help the
> developer community as a whole, we use the forums exclusively for
> communication.  We therefore don't provide one-to-one support via
> email or chat.  I'm certainly happy to answer any questions that I'm
> able to in the forums, however!
>
> Cheers!
>
> Paul
>
>
> On May 27, 11:59 pm, vel murugan <[email protected]> wrote:
> > Hi Paul,
> >
> > Thanks for the reply,
> >
> > I have registered our test app. on the google using our email id. we have
> to
> > pass some param. to the clientLogin url to get the token. In that one
> param
> > name is Service type, it has the values either HOSTED, HOSTED_OR_GOOGLE,
> > GOOGLE is there any difference using that. Please expain little also i
> have
> > tried HOSTED i didn't get the token. But I tried the "HOSTED_OR_GOOGLE"
> got
> > the token but tried to get the tokeninfo unsing the tokenInfo url i am
> > getting "Invalid AuthSub token." Do you have any thoughts on this?
> >
> > could you plz let me know on which time u will be in online?, i will
> catch u
> > over online to discuss about this. Alreday i sent you a request for
> google
> > chat.
> >
> > Thanks,
> > velmurugan
> >
> >
> >
> > On Fri, May 28, 2010 at 12:00 AM, Paul (Google) <[email protected]> wrote:
> > > Hi velmurugan,
> >
> > > Is it possible for you to use your AuthSub/OAuth tokens to determine
> > > which users are using Health?  If you're linking accounts using
> > > AuthSub, you can verify that a token is still valid using the
> > > AuthSubTokenInfo interface, which is documented at the following
> > > address:
> >
> > >http://code.google.com/apis/accounts/docs/AuthSub.html#AuthSubTokenInfo
> >
> > > With both OAuth or AuthSub, any access to a user's account will fail
> > > if their token has been revoked (i.e. they have unlinked their
> > > account).
> >
> > > I'm not yet aware of a Google service that will return a list of
> > > linked accounts; however, I'm still looking into possibilities.
> > > Using the Apps Reporting API likely won't work since it's currently
> > > for Google Apps only (Gmail, Spreadsheets, Calendar).  The purpose of
> > > this API is to allow businesses to track statistics about usage of
> > > their hosted Apps, and not for reporting about Google services in
> > > general.
> >
> > > Paul
> >
> > > On May 25, 11:42 pm, vel murugan <[email protected]> wrote:
> > > > Any update on this?
> >
> > > > On Sat, May 22, 2010 at 12:52 PM, vel murugan <[email protected]
> >
> > > wrote:
> > > > > Hi,
> >
> > > > > Anyone please help me to find the list of patients having the
> google
> > > health
> > > > > profile from our application.Its urgent.
> >
> > > > > thanks,
> > > > > velmurugan
> >
> > > > > 91c4221d88
> > > > > 91c4221d88
> >
> > >  --
> > > 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]<googlehealthdevelopers%[email protected]><googlehealthdevelopers%
> [email protected]>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/googlehealthdevelopers?hl=en.
>
> --
> 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]<googlehealthdevelopers%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/googlehealthdevelopers?hl=en.
>
>

-- 
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.

Reply via email to