Hi,

I started off using HealthDemo.java as found at the following URL:

http://gdata-java-client.googlecode.com/svn/trunk/java/sample/health/HealthDemo.java

That works fine, but I would like to switch it over to using the h9
sandbox, so I can work out posting without having to worry about the
security issues.

When I change the FEED_BASE_PATH to http://www.google.com/h9/feeds/, I
get the following error:

<HTML>
<HEAD>
<TITLE>Token invalid</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Token invalid</H1>
<H2>Error 401</H2>
</BODY>
</HTML>

        at com.google.gdata.client.http.HttpGDataRequest.handleErrorResponse
(HttpGDataRequest.java:508)
        at com.google.gdata.client.http.GoogleGDataRequest.handleErrorResponse
(GoogleGDataRequest.java:555)
        at com.google.gdata.client.http.HttpGDataRequest.checkResponse
(HttpGDataRequest.java:480)
        at com.google.gdata.client.http.HttpGDataRequest.execute
(HttpGDataRequest.java:459)
        at com.google.gdata.client.http.GoogleGDataRequest.execute
(GoogleGDataRequest.java:527)
        at com.google.gdata.client.Service.getFeed(Service.java:962)
        at com.google.gdata.client.Service.getFeed(Service.java:819)
        at com.google.gdata.client.GoogleService.getFeed(GoogleService.java:
599)
        at com.google.gdata.client.Service.getFeed(Service.java:838)
        at vanderbilt.myhealth.googledemo.HealthDemo.getAllProfileIds
(HealthDemo.java:99)
        at vanderbilt.myhealth.googledemo.HealthDemo.selectProfile
(HealthDemo.java:157)
        at vanderbilt.myhealth.googledemo.HealthDemo.executeCommand
(HealthDemo.java:185)
        at vanderbilt.myhealth.googledemo.HealthDemo.run(HealthDemo.java:220)
        at vanderbilt.myhealth.googledemo.HealthDemo.main(HealthDemo.java:
241)


I was under the impression that /health and /h9 are interchangeable,
so I'm confused.

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