troubleshooting Question

Editing Google Contacts via PHP and Zend Framework

Avatar of JRSchaefer
JRSchaefer asked on
PHPWeb DevelopmentGoogle Workspace
3 Comments1 Solution1026 ViewsLast Modified:
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('' . $_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.

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 3 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 3 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros