On Wed, Mar 11, 2009 at 1:24 PM, ogierepier <[email protected]> wrote: > Hi, i'm using the PHP library and I can't find anywhere in the > documentation how to create events for other calendars than the > default calendar. Is this possible and if yes, how do you do this?
The insertEvent() method accepts a URL parameter: http://framework.zend.com/apidoc/core/Zend_Gdata/Calendar/Zend_Gdata_Calendar.html#insertEvent Specifically: void insertEvent ( $event, [ $uri = null]) You can get this URL by first retrieving the Calendar metafeed: http://code.google.com/apis/calendar/docs/1.0/developers_guide_php.html#RetrievingCalendars ...once you have the metafeed, you'll want to extract the alternate link from the calendar's entry, using this method: http://framework.zend.com/apidoc/core/Zend_Gdata/App/Zend_Gdata_App_FeedEntryParent.html#methodgetAlternateLink ...finally, extract the href value from that link and pass it to insertEvent(). -- Trevor Johns --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
