To create an event on a calendar, you post to http://www.google.com /calendar/feeds/CALENDAR_ID/private/full where CALENDAR_ID is the id of the calendar (looks like an email address) . If you use the user's email address, it will post to their primary calendar, same as using default as the calendar id.
You can parse the calendar id out of the urls or you can look it up in the UI. Ray On Fri, Aug 14, 2009 at 7:35 PM, Gerald <[email protected]> wrote: > > I am trying to use Google Calendar API. One question I have right now > is how to publish an event to a non-primary calendar. > In document at > http://code.google.com/apis/calendar/docs/2.0/developers_guide_protocol.html#CreatingSingle > , > the post url of posting a new event is > http://www.google.com/calendar/feeds/default/private/full. > As a result, this will put the event to my primary calendar. I have > not found any clue about how to specify the calendar that the new > event will belong to. > > Thanks > Gerald > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
