Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-21-2008, 04:46 PM
Junior Member
 
Join Date: Jan 2008
Posts: 1
Default Gdata Calendar: event color

Hi,

i'm a novice but i found very usefull this api.

A question: how to assign a colour to a event?

this is my script:
$user = 'xxxx@gmail.com ';
$pass = 'yyyy';
$client = Zend_Gdata_ClientLogin::getHttpClient(
$user, $pass,
Zend_Gdata_Calendar::AUTH_SERVICE_NAME);
$calendar_service = new Zend_Gdata_Calendar($client);

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

$event = $calendar_service->newEventEntry();
$event->title = $calendar_service->newTitle($title);
$event->where = array($calendar_service->newWhere("$localita"));
$event->content = $calendar_service->newContent($title);

$when = $calendar_service->newWhen();
$when->startTime = "{$startDate}T{$startTime}:00.000{$tzOffset}:0 0";
$when->endTime = "{$endDate}T{$endTime}:00.000{$tzOffset}:00";
$event->when = array($when);

$newEvent = $calendar_service->insertEvent($event);
many thanks...

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:57 PM.