View Single Post
  #2 (permalink)  
Old 08-23-2007, 02:43 AM
wene wene is offline
Junior Member
 
Join Date: Aug 2007
Posts: 4
Thumbs up

i see that the question is reccurent.
i have found a way to have an answer.

using the calendar link :

Code:
// get the calendars list feed

$gdataCal = new Zend_Gdata_Calendar($client);
$calFeed = $gdataCal->getCalendarListFeed();

// get the calendar url (0 is first one, then 1 is second one etc...)

$url = $calFeed[1]->link[0]->href;

// ask for feeds

$events = $gdataCal->getCalendarEventFeed($url);
....
the same using queries :

Code:
// get the calendars list feed

$gdataCal = new Zend_Gdata_Calendar($client);
$calFeed = $gdataCal->getCalendarListFeed();

// get the calendar user ( $cals[1] for the first calendar... )

$id = $cals[1]->id->text;
$user = str_replace(Zend_Gdata_Calendar::CALENDAR_FEED_URI.'/default/', "", $id); // kind of dirty way to get the info, nut it lokks working :)

// ask for feeds

$query->setUser($user);
$query->setVisibility('private');
$query->setProjection('full');
$query->setOrderby('starttime');
$query->setFutureevents('true');
$events = $gdataCal->getCalendarEventFeed($query);
......

Last edited by wene : 08-23-2007 at 04:04 AM.
Reply With Quote