I'm not sure what I'm missing, but I can't seem to fix the problem.
Could you show me a quick example of how I would, say, grab and show
the user's date of birth? I think with one end-to-end example I could
extrapolate.

On Dec 28, 3:20 pm, Josh <[email protected]> wrote:
> Thanks for the prompt reply, and happy holidays!
>
> Using the second method described I am able to retrieve Procedures:
> $entry->getCcr()->getProcedures();
>
> However, when I use the same protocol to retrieve Demographics...
> $entry->getCcr()->getDemographics();
> ...no information is returned. I have checked the profile and there is
> demographic information present. Why is the string empty?
>
> Thanks.
>
> Josh
>
> On Dec 28, 9:00 am, "Eric (Google)" <[email protected]> wrote:
>
>
>
> > Hey Josh,
>
> > If you haven't already seen the PHP Developer's Guide, check it 
> > out:http://code.google.com/apis/health/docs/1.0/developers_guide_php.html
>
> > To retrieve certain CCR elements (e.g. just demographics), you can
> > use a category query (http://code.google.com/apis/health/docs/2.0/
> > reference.html#CatQueries):https://www.google.com/h9/feeds/profile/default/-/Demographics?digest...
>
> > Or, you can query the entire profile and extract certain elements,
> > as described in the developer's guide:
> > $entry->getCcr()->getDemographics();
>
> > In all cases, the CCR is returned as an XML blob, so you'll need to
> > parse out
> > element values yourself.  I suggest DOMDocument or something 
> > similar:http://us.php.net/manual/en/class.domdocument.php
>
> > Eric
>
> > On Dec 26, 9:52 pm, Josh <[email protected]> wrote:
>
> > > My current system allows for sending of health information to Google
> > > Health--now I'm trying to figure out how to get information from
> > > Google Health. I have read through the documentation (including CCR
> > > documentation) but cannot quite figure out how to splice the necessary
> > > data out of the results sent from Google to my website. It looks like
> > > the entire feed is delivered into a single line of data, but I need to
> > > gather demographic information bit by bit (age, gender, etc.) and most
> > > recent procedure information (by procedure name, only most recent
> > > necessary). How do I do this in PHP?
--~--~---------~--~----~------------~-------~--~----~
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