Yep, you can certainly add events to secondary calendars. Just find
out the calendar address from the calendar settings page (click the
arrow next to the calendar to access the settings).
The calendar address is in the link behind the 'XML' link -- it looks
like an e-mail address @group.calendar.google.com. This address can
then be used when querying events:
Here's a code snippet of querying events -- calling setUser with the
calendar address:
$gdataCal = new Zend_Gdata_Calendar($client);
$query = $gdataCal->newEventQuery();
$query->setUser('[EMAIL PROTECTED]');
$query->setVisibility('private');
$query->setProjection('full');
$query->setOrderby('starttime');
$query->setStartMin($startDate);
$query->setStartMax($endDate);
$eventFeed = $gdataCal->getCalendarEventFeed($query);
For inserting events, the Zend_Gdata_Calendar::insertEvent method
takes an optional second argument specifying the URL to which the
event should be posted:
$createdEvent = $gdataCal->insertEvent($newEvent, 'http://
www.google.com/calendar/feeds/<calendar address>/private/full');
In this case, you'd substitute <calendar address> with the address
(such as [EMAIL PROTECTED])
Note - at this time, you cannot create calendars through the API, but
this is a feature that's often requested.
Hope this works well for you! Let me know if you have any further
questions.
Cheers,
-Ryan
On Jun 12, 6:33 am, BigAL <[EMAIL PROTECTED]> wrote:
> Works fine Adding and Listing with 1.0.0 RC2
>
> I currently have a project to create a master Google Calendar for a
> group and about 10 sub Calendars for individuals in this group.
> Individuals will only have the Private URL (read only) option to view
> there individual calendar (for work schedule).
>
> I need to know how to create(schedule) events in the individual
> calendars without having to create individual user IDs and Passwords,
> only The Master Calendar can add to the individual calendars.
>
> I am able to do it in the current browser UI, but is there a sample
> API code to add events to sub calendars under the Master calendar.
> (The Master Calendar will not be a public share)
>
> I hope the above is clear for you to guide me.
>
> Maybe a Google expert can answer the above question...Thanks
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---