Cancelado

Write some Software

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();

}

Habilidades: Javascript, PHP, Arquitectura de software

Ver más: google calendar architecture, event calendar script php, google calendar api v3, write query, catch local, google calendar zend, list ascending, google calendar script php, php script calendar google, api google calendar, event calendar api, calendar event api, calendar google api, query loader, create local user script, google php calendar api, error 1500, php library api, event php google calendar, php write error, write loader, usr full server, php google calendar script, google calendar library, generate query

Información del empleador:
( 7 comentarios ) London, United Kingdom

Nº del proyecto: #6758905