insertEvent takes a second, optional parameter, the post uri of the calendar to which the event should be added.
On Tue, Apr 15, 2008 at 9:30 AM, MidnightLightning <[EMAIL PROTECTED]> wrote: > > I've got a calendar that I want to add events to that's not my user's > default calendar. I'm using the Zend PHP libraries, but nowhere in the > Zend nor Google documentation can I find where the flag is to say > "this is the calendar that I want to add this event to". I ran into > this same problem when I was trying to retrieve the events from the > calendar and had to find out the "user" of the calendar via the > Calendar Feed info (http://code.google.com/apis/calendar/ > developers_guide_php.html#RetrievingCalendars<http://code.google.com/apis/calendar/developers_guide_php.html#RetrievingCalendars>) > and grabbing the ID > text from that listing, the passing it as the 'user' in the query when > getting the events. But now for creating the event, as per the > instructions at > http://code.google.com/apis/calendar/developers_guide_php.html#CreatingSingle > , > there's no "query" being sent along. The command "$event = $gdataCal- > >newEventEntry()" is given with no parameters being passed by default, > and possibly a query there would be able to target a specific > calendar, or is there another method to use on the "$event" object to > specify a target calendar, or is there another parameter to be passed > to "$createdEvent = $gdataCal->insertEvent($event);" in addition to > the "$event" object to make it be a specific calendar? > > Any help directing me to the proper documentation on which way this is > supposed to go, would be most helpful. > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
