i am using this code.
> $client = new Zend_Gdata_HttpClient();
>
> $client->setAuthSubToken($accessToken);
>
> $client->setAuthSubPrivateKeyFile('myrsakey.pem', null, true);
>
> $gdata = new Zend_Gdata($client);
>
> $query = new
>> Zend_Gdata_Query('http://www.google.com/m8/feeds/contacts/default/full');
>
> $feed = $gdata->getFeed($query);
>
> echo "<PRE>";
>
> print_r($feed);
>
> echo "</PRE>";
>
> $entries = $gdata->retrieveAllEntriesForFeed($feed);
>
>
>> $contacts = array();
>
> foreach ($entries as $entry) {
>
> $name = $entry->title->text;
>
> $output = '<br />Name: '. $name;
>
> $email = null;
>
> $extensions = $entry->getExtensionElements();
>
> foreach ($extensions as $extension) {
>
> if ($extension->rootElement == 'email') {
>
> $attributes = $extension->getExtensionAttributes();
>
> if (!isset($email)) $output .= ' - Email: '.
>> $attributes['address']['value'];
>
> $email = $attributes['address']['value'];
>
> }
>
> }
>
> if ($email) {
>
> print $output;
>
> $contacts[] = array('name' => $name, 'email' => $email);
>
> }
>
> }
>
>
but m getting nothing .
--
You received this message because you are subscribed to the Google
Groups "Google Contacts, Shared Contacts and User Profiles APIs" 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://code.google.com/apis/contacts/community/forum.html