Thank you very much, Eric.

On Mar 25, 6:56 pm, "Eric (Google)" <[email protected]> wrote:
> Because of this 
> issue:http://code.google.com/p/gdata-issues/issues/detail?id=1070
>
> you need to use digest=false or a 'demographics '
> category query with digest=true:
>
> $query = new Zend_Gdata_Health_Query();
> $query->setDigest("true");
> $query->setCategory("demographics");
> $profileFeed = $healthService->getHealthProfileFeed($query);
> foreach ($profileFeed->entry as $entry) {
>       $actors= $entry->getCcr()->getActors();
>       foreach ($actors as $actor) {
>         $xmlStr = $actor->ownerDocument->saveXML($actor);
>         echo "<p>" . xmlpp($xmlStr) . "</p>";
>       }}
>
> Eric
>
> On Mar 25, 12:51 pm, danny <[email protected]> wrote:
>
> > I use Zend Framework to extract CCR for google health. But I couldn't
> > figure out how to retrieve the date of birth, and gender,etc.
> > information. I read the previous post, it told that I can't use
> > getDemographics() since there's no explicit Demographics CCR element.
> > And also if I use the below code as suggested in that 
> > posthttp://groups.google.com/group/googlehealthdevelopers/browse_thread/t...
>
> > foreach ($profileFeed->entry as $entry) {
> >       $actors= $entry->getCcr()->getActors();
> >       foreach ($actors as $actor) {
> >         $xmlStr = $actor->ownerDocument->saveXML($actor);
> >         echo "<p>" . xmlpp($xmlStr) . "</p>";
> >       }
>
> > }
>
> > The returned information does not include DOB and gender.
>
> > Anyone any suggestions how I can do?
>
> > Thanks
--~--~---------~--~----~------------~-------~--~----~
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