On Aug 30, 2008, at 8:36 PM, Gines wrote: > I am trying to create a new event in a secondary calendar (non-default > calendar), but I couldn't. > > Should I use the setUser=<calendarID>@group.calendar.google.com? The > code that I am using is below, but it is working only for the default > calendar.
No. You should set the user as for the primary calendar. The user is the user, the calendarID is the calendar. It is confusing because they are the same for the user's primary calendar. (Also, the calendarID includes the "@group.calendar.google.com" part.) You need to change this line: > $createdEntry = $gc->insertEvent($newEntry); to $createdEntry = $gc->insertEvent($newEntry, calendarURL); where the calendarURL will be something like https://www.google.com/calendar/feeds/ <calendarID>/private/full Ray -- Ray Baxter http://67central.com/bc/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
