Hi Shushu,

Each notice entered into Health is given a unique identifier, which is
in the <id> element of Atom feed that is returned when data is posted
to or retrieved from Health.  This element is part of the following
example:

http://code.google.com/apis/health/docs/2.0/developers_guide_protocol.html#GettingProfile

I've yet to try this, but you should be able to retrieve these id's in
PHP from the entries that are part of the returned feeds.  For your
case, you might want to try the following:

$responseEntry = $healthService->sendHealthNotice($subject, $body,
"html", $ccr);
$id = $responseEntry->getId();

Cheers!

Paul


On May 23, 1:08 am, shushu <[email protected]> wrote:
> Hello,
> My application sync the medications between my database and Google
> Health, using PHP and sendHealthNotice().
> To keep the sync I want to save an ID for every created medication,
> and I was trying to use the CCRDataObjectID taken from the CCR
> returned from the sendHealthNotice().
>
> Unfortunately I found out the CCRDataObjectID is never the same, and
> changed in a way I can't understand.
> Only then I read about it here 
> -http://groups.google.com/group/googlehealthdevelopers/browse_thread/t...http://groups.google.com/group/googlehealthdevelopers/msg/90633b3bbfc...
>
> Both posts are not clear, and I can't understand what should be the
> right solution for my problem.
> What is the <id> Ken Miller talked about ?
> Is there another solution ?
>
> Regards,
> Shushu
>
> --
> 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 
> athttp://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