Hi Daniel, This is possible with the php api Creating single-occurrence events
Events are added to a calendar by creating a Zend_Gdata_Calendar_EventEntry<http://framework.zend.com/apidoc/core/Zend_Gdata/Calendar/Zend_Gdata_Calendar_EventEntry.html> and populating it with the appropriate data. An instance ofZend_Gdata_Calendar<http://framework.zend.com/apidoc/core/Zend_Gdata/Calendar/Zend_Gdata_Calendar.html> is then used to POST the XML to a specific Google Calendar. In this case, the event is posted to the default calendar of the authenticated user. The following attributes of the event should be set: - *title*, set using setTitle<http://framework.zend.com/apidoc/core/Zend_Gdata/App/Zend_Gdata_App_FeedEntryParent.html#setTitle>, specifies the headline that will appear above the event in the Google Calendar UI. - *when*, set using setWhen<http://framework.zend.com/apidoc/core/Zend_Gdata/Gdata/Zend_Gdata_Kind_EventEntry.html#setWhen>, denotes the time and duration of the event. The start and end times of the event are specified with setStartTime<http://framework.zend.com/apidoc/core/Zend_Gdata/Gdata/Zend_Gdata_Extension_When.html#setStartTime> andsetEndTime<http://framework.zend.com/apidoc/core/Zend_Gdata/Gdata/Zend_Gdata_Extension_When.html#setEndTime>, respectively, using RFC 3339 <http://tools.ietf.org/html/rfc3339> formatted strings. All day events are created by specifying a date without a time, and zero-duration events are set by omitting the end time entirely. Optionally, up to five reminders for an event can be created by attaching them to a when object. Reminders will be covered in more detail later in this guide. Other useful functions include but are not limited to: - *author*, retrieved using getAuthor<http://framework.zend.com/apidoc/core/Zend_Gdata/App/Zend_Gdata_App_FeedEntryParent.html#getAuthor>, can be used to access the user who created the event. Note that the calendar API will not accept user-submitted updates to this attribute. - *content*, set using setContent<http://framework.zend.com/apidoc/core/Zend_Gdata/App/Zend_Gdata_App_Entry.html#setContent>, provides additional information about the event which appears when the event details are requested from within Google Calendar. Optionally, the description's mime-type is set using setType<http://framework.zend.com/apidoc/core/Zend_Gdata/App/Zend_Gdata_App_Extension_Text.html#setType> to specify HTML instead of plain text. - *eventStatus*, set using setEventStatus<http://framework.zend.com/apidoc/core/Zend_Gdata/Gdata/Zend_Gdata_Kind_EventEntry.html#setEventStatus>, denotes whether the event is confirmed, tentative, or canceled. See gd:eventStatus in the Google Data Common Elements Reference<http://code.google.com/apis/gdata/elements.html#gdEventStatus> for a list of possible values. - *transparency*, set using setTransparency<http://framework.zend.com/apidoc/core/Zend_Gdata/Gdata/Zend_Gdata_Kind_EventEntry.html#setTransparency>, indicates whether the event should consume time on the user's free/busy list. - *visibility*, set using setVisibility<http://framework.zend.com/apidoc/core/Zend_Gdata/Gdata/Zend_Gdata_Kind_EventEntry.html#setVisibility>, allows an event to be hidden from a user's public feeds. For a complete list of event attributes, refer to the Google Data package in the Zend Framework API Documentation<http://framework.zend.com/apidoc/core/>, the Event Kind in the Google Data APIs Common Elements List<http://code.google.com/apis/calendar/data/1.0/reference.html%3EGoogle%20Calendar%20Data%20API%20Reference%20Guide%3C/a%3E,%20and%20the%20%3Ca%20href=>. Attribute that can can contain multiple values, such as where, are implemented as arrays and need to be created accordingly. Be aware that all of these attributes require objects as parameters. Trying to instead populate them using strings or primitives will result in errors during conversion to XML You can also create your own properties on events for your program to access Bim -- 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://code.google.com/apis/calendar/community/forum.html
