Write some Software
£10-20 GBP
ชำระเงินเมื่อจัดส่ง
I need the following small script to be converted from Google Calendar API v2 to v3:
// load library
$clientLibraryPath = '/usr/local/lib/php/library';
$oldPath = set_include_path(get_include_path() . PATH_SEPARATOR . $clientLibraryPath);
require_once 'Zend/[url removed, login to view]';
Zend_Loader::loadClass('Zend_Gdata');
Zend_Loader::loadClass('Zend_Gdata_ClientLogin');
Zend_Loader::loadClass('Zend_Gdata_Calendar');
Zend_Loader::loadClass('Zend_Http_Client');
// create authenticated HTTP client for Calendar service
$gcal = Zend_Gdata_Calendar::AUTH_SERVICE_NAME;
$user = "****";
$pass = "****";
$accountType = "GOOGLE";
$client = Zend_Gdata_ClientLogin::getHttpClient($user, $pass, $gcal);
$gcal = new Zend_Gdata_Calendar($client);
// generate query to get event list
$calendar_user='***';
$calendar_visibility = '****';
$query = $gcal->newEventQuery();
$query->setUser($calendar_user);
$query->setVisibility($calendar_visibility);
$query->setProjection('full');
$query->setOrderby('starttime');
$query->setSortOrder('ascending');
$query->setStartMin('2014-11-01');
$query->setStartMax(date('r'));
$query->setMaxResults(1500);
$query->setsingleevents('true');
// Retrieve the event list from the calendar server
try {
$eventFeed = $gcal->getCalendarEventFeed($query);
} catch (Zend_Gdata_App_Exception $e) {
echo "Error: " . $e->getMessage();
}
หมายเลขโปรเจค: #6758905