Hi,
When constructing your URI query, use the setUser method to grab the feed
for this "user" (remember : the "user" part of a feed is not necessarly an
existing gmail account, it could also be a private id for a secondary
calendar) :
// create the calendar service, with no authentication
$agenda = new Zend_Gdata_Calendar(NULL);
// create the query URI
$query = $agenda->newEventQuery();
// $user = "[email protected]" for the main/primary
calendar, or the randomly generated ID of any secondary calendar. See below
for fetching the ID in the GUI.
$query->setUser($user);
// since we access the calendar with no authentication, we have to
use the "private-magiccookie" visibility ; the magiccookie is a secret ID
which can be found in the GUI
$query->setVisibility("private-$magickey");
// other parameters
$query->setProjection('full');
$query->setOrderby('starttime');
$query->setSortOrder("ascending");
$query->setSingleEvents(true);
// execute request
$eventsFeed = $agenda->getCalendarEventFeed($query);
In order to fetch the "user" and "magiccookie" parts of the feed, you should
open the calendar GUI in your browser, go to the settings page. Click on a
given secondary calendar, and click on the orange "xml" button on the page
bottom (last line, private calendar url) ; it will open a popup window with
the full URI feed of this secondary calendar. Just extract the "user" part
and the magiccookie".
Please note that a calendar URI feed looks like :
www.google.com/calendar/feeds/user/visibility/projection.
--
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://code.google.com/apis/calendar/community/forum.html