How can I get $events from several public calendars?

To get event feeds from one calendar, I am doing the following:

$this->gdata = new Zend_Gdata_Calendar;
$calendar_id = '[email protected]';
$calendar_url = 'http://www.google.com/calendar/feeds/'.$calendar_id.'/
public/full';

$query = $this->gdata->newEventQuery();
$query->setUser($calendar_id);
$query->setOrderby('starttime');
$query->setSortOrder('ascending');
$query->setProjection('full');
$query->setFutureevents('true');

try {
$events = $this->gdata->getCalendarEventFeed($query);
} catch (Zend_Gdata_App_Exception $e) {
throw new Exception("Error: " . $e->getMessage());
}

Thanks you in advance.

--

You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" group.
To post to this group, send email to 
[email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-calendar-help-dataapi?hl=en.


Reply via email to