Avatar of JRSchaefer

asked on 

Editing Google Contacts via PHP and Zend Framework

Does anyone know the query code to access and edit a Google Contact?  Please forgive if I'm not using the right terms, I'm new to both PHP, Google API and Zend Framework.

Here is what I am using to access and edit my Google Calendar event items:

$gcal = Zend_Gdata_Calendar::AUTH_SERVICE_NAME;
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $gcal);
$gcal = new Zend_Gdata_Calendar($client);

if (isset($_GET['id'])) {
        try {          
          $event = $gcal->getCalendarEventEntry('http://www.google.com/calendar/feeds/default/private/full/' . $_GET['id']);
        } catch (Zend_Gdata_App_Exception $e) {
          echo "Error: " . $e->getResponse();

I basically need the same type of code but for the Google Contacts.

I haven't found or figured out what works for accessing Google Contacts to edit and delete them via my custom Client Management System.
PHPWeb DevelopmentGoogle Workspace

Avatar of undefined
Last Comment

8/22/2022 - Mon