We use vTiger as an open-source CRM. We want to be able to sync contacts in vTiger with contacts in google.
vTiger is in PHP, so the ZEND google data API should be useful.
<[login to view URL]>
Here is some information about vTiger Extension Modules:
<[login to view URL]:Vtlib>
Also, I wrote a simple test script which might be a good starting point:
<?php
// load Zend Gdata libraries
require_once 'Zend/[login to view URL]';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Http_Client');
Zend_Loader::loadClass('Zend_Gdata_Query');
Zend_Loader::loadClass('Zend_Gdata_Feed');
// set credentials for ClientLogin authentication
$user = "xxxxx@[login to view URL]";
$pass = "xxxxx";
try {
// perform login and set protocol version to 3.0
$client = Zend_Gdata_ClientLogin::getHttpClient(
$user, $pass, 'cp');
$gdata = new Zend_Gdata($client);
$gdata->setMajorProtocolVersion(3);
// perform query and get result feed
$query = new Zend_Gdata_Query(
'[login to view URL]');
$feed = $gdata->getFeed($query);
// display title and result count
echo $feed->title;
.....