Some additional information: I did see the documentation about synchronizing data ( http://code.google.com/apis/health/docs/2.0/developers_guide_protocol.html#GettingProfile ) Based on this, I think I should be able to use an id out of the service.insert() response and save that id to use for future synchronization-type queries. But it hasn't worked for me - problems listed below.
The <id> element on the response is a full feed url to the registers feed with an additional token - it looks something like this: https://www.google.com/h9/feeds/register/default/IeCzqHgNFbA. - If I try to do a service.query() directly using that "id" url, I get an (expected) authsub error saying that my token is not valid for the request. - If I try to do a service.query() directly using the "id" url but replacing "register" with "profiles" I get an error saying that the resource does not exist. - The token in the "id" url is (almost) the same as the embedded CCRDataObjectID: something like ChpyalQS3B4-0 in the CCRDataObjectID, with ChpyalQS3B4 as the token in the "id" url. But the CCRDataObjectID in the response is not in the list I get back from querying the profile - the full list of Procedures elements does not contain that id. I was surprised by this; I had thought they would be the same. Because they are not, I ended up querying the full profile Procedures list before and after my insert in order to find the one new Procedure in the list, and get the CCRDataObjectID from it for use is subsequent synchronization queries. I would much rather not be doing this pre- and post- profile listing query; I would rather pull <something> from the service.insert() response and be able to use that to subsequently query the profile to check if that entry is still in the profile. Thanks in advance for any help with what I am doing wrong, Laurie Tynor --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
