Hi Julian, Could you check it out?
http://allmybookings.com/googlecontactsinfo.php You need to click on the top link Then you grand access, And then it goes to: http://allmybookings.com/viewcontacts.php?token=CK3iteHqChDZ_52o______8B But I get a white page, What am I doing wrong? I used your new code, with my email "[email protected]" and it's password. Thanks Sebastian On 15/05/09 17:46, "Julian (Google)" <[email protected]> wrote: > <?php > > $clientLibraryPath = '/var/www/contacts/Zend'; > $oldPath = set_include_path(get_include_path() . PATH_SEPARATOR . > $clientLibraryPath); > > require_once 'Loader.php'; > > Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); > Zend_Loader::loadClass('Zend_Gdata_Gapps'); > Zend_Loader::loadClass('Zend_Gdata_Query'); > > // Using Client Login > $client = Zend_Gdata_ClientLogin::getHttpClient("[email protected]", > "PASSWORD", "cp"); > $gdata = new Zend_Gdata($client); > $query = new Zend_Gdata_Query('http://www.google.com/m8/feeds/contacts/ > user%40domain.com/full'); > $query->setMaxResults(1000); > $feed = $gdata->getFeed($query); > > $xml = new SimpleXMLElement($feed->getXML()); > $entries = $xml->children('http://www.w3.org/2005/Atom'); > > foreach ($entries->entry as $entry ) { > $defaults = $entry->children('http://schemas.google.com/g/2005'); > echo 'title: '. $entry->title; > if ( isset($defaults->email)){ > echo ' email: '. isset($defaults->email->attributes()->address); > } > echo ' address: '.$defaults->postalAddress; > } > ?> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Contacts API" 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/google-contacts-api?hl=en -~----------~----~----~----~------~----~------~--~---
