Ok ... figured it out.

Didn't realize that H9 and Health both required unique profiles.

Added data to the H9 profile and am moving forward again.

Thanks,
Charles

p.s. I'd delete the original post if I was able.
=========================================

On Nov 28, 12:42 pm, chaz_winter <[EMAIL PROTECTED]> wrote:
> Hello,
>
> When querying for a profile using the code below, I am returned an
> object such as can be seen further below.  I've only provided the
> first third of the returned object as it is quite large and only a
> small amount is necessary to get the picture.
>
> Why am I getting that and not the CCR document which I need?
>
> Thanks in advance,
> Charles
>
> ==============================================
>
> App::import('Vendor', 'zend_include_path');
>                         App::import('Vendor', 'Zend_Gdata', true,
> false, 'Zend/Gdata.php');
>                         App::import('Vendor', 'Zend_Gdata_AuthSub',
> true, false, 'Zend/Gdata/AuthSub.php');
>                         App::import('Vendor', 'Zend_Gdata_Query',
> true, false, 'Zend/Gdata/Query.php');
>
>                         $client = null;
>
>                         $sessionToken = $this->Session->read('token');
>                         $client = new Zend_Gdata_HttpClient();
>                         $client->setAuthSubToken($sessionToken);
>                         $client->setAuthSubPrivateKeyFile('/home/
> basicmed/public_html/webroot/files/basicmedcard_rsakey.pem', null,
> true);
>                         $gdata = new Zend_Gdata($client);
>
>                         $query = new Zend_Gdata_Query(
>                                 'https://www.google.com/h9/feeds/
> profile/default?digest=true');
>
>                         $feed = $gdata->getFeed($query);
>
>                         echo "<pre>";
>                         print_r($feed);
>                         echo "</pre>";
>
> ==============================================
>
> Zend_Gdata_Feed Object
> (
>     [_entryClassName:protected] => Zend_Gdata_Entry
>     [_totalResults:protected] =>
>     [_startIndex:protected] =>
> Zend_Gdata_Extension_OpenSearchStartIndex Object
>         (
>             [_rootElement:protected] => startIndex
>             [_rootNamespace:protected] => openSearch
>             [_rootNamespaceURI:protected] =>
>             [_extensionElements:protected] => Array
>                 (
>                 )
>
>             [_extensionAttributes:protected] => Array
>                 (
>                 )
>
>             [_text:protected] => 1
>             [_namespaces:protected] => Array
>                 (
>                     [atom] =>http://www.w3.org/2005/Atom
>                     [app] =>http://purl.org/atom/app#
>                     [openSearch] =>http://a9.com/-/spec/opensearchrss/1.0/
>                     [rss] =>http://blogs.law.harvard.edu/tech/rss
>                     [gd] =>http://schemas.google.com/g/2005
>                 )
>
>         )
>
>     [_itemsPerPage:protected] =>
>     [_rootElement:protected] => feed
>     [_entry:protected] => Array
>         (
>         )
>
>     [_entryIndex:protected] => 0
>     [_generator:protected] =>
>     [_icon:protected] =>
>     [_logo:protected] =>
>     [_subtitle:protected] =>
>     [_httpClient:protected] => Zend_Gdata_HttpClient Object
>         (
>             [_authSubPrivateKeyId:private] => Resource id #177
>             [_authSubToken:private] => CKWZycSAFhCX-5S8-f____8B
>             [_clientLoginToken:private] =>
>             [_clientLoginKey:private] =>
>             [config:protected] => Array
>                 (
>                     [maxredirects] => 0
>                     [strictredirects] => 1
>                     [useragent] => Zend_Http_Client
>                     [timeout] => 10
>                     [adapter] => Zend_Http_Client_Adapter_Socket
>                     [httpversion] => 1.1
>                     [keepalive] =>
>                     [storeresponse] => 1
>                     [strict] => 1
>                 )
>
>             [adapter:protected] => Zend_Http_Client_Adapter_Socket
> Object
>                 (
>                     [socket:protected] => Resource id #195
>                     [connected_to:protected] => Array
>                         (
>                             [0] => ssl://www.google.com
>                             [1] => 443
>                         )
>
>                     [config:protected] => Array
>                         (
>                             [persistent] =>
>                             [ssltransport] => ssl
>                             [sslcert] =>
>                             [sslpassphrase] =>
>                             [maxredirects] => 0
>                             [strictredirects] => 1
>                             [useragent] => Zend_Http_Client
>                             [timeout] => 10
>                             [httpversion] => 1.1
>                             [keepalive] =>
>                             [storeresponse] => 1
>                             [strict] => 1
>                         )
>
>                     [method:protected] => GET
>                 )
>
>             [uri:protected] => Zend_Uri_Http Object
>                 (
>                     [_username:protected] =>
>                     [_password:protected] =>
>                     [_host:protected] =>www.google.com
>                     [_port:protected] => 443
>                     [_path:protected] => /h9/feeds/profile/default
>                     [_query:protected] => digest=true
>                     [_fragment:protected] =>
>                     [_regex:protected] => Array
>                         (
>                             [alphanum] => [^\W_]
>                             [escaped] => (?:%[\da-fA-F]{2})
>                             [mark] => [-_.!~*'()\[\]]
>                             [reserved] => [;\/?:@&=+$,]
>                             [unreserved] => (?:[^\W_]|[-_.!~*'()\[\]])
>                             [segment] => (?:(?:(?:[^\W_]|[-_.!~*'()\
> [\]])|(?:%[\da-fA-F]{2})|[:@&=+$,;])*)
>                             [path] => (?:\/(?:(?:(?:[^\W_]|[-_.!~*'()\
> [\]])|(?:%[\da-fA-F]{2})|[:@&=+$,;])*)?)+
>                             [uric] => (?:[;\/?:@&=+$,]|(?:[^\W_]|[-_.!
> ~*'()\[\]])|(?:%[\da-fA-F]{2}))
>                         )
>
>                     [_scheme:protected] => https
>                 )
>
> .............. continues
--~--~---------~--~----~------------~-------~--~----~
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