export_ics Method
Generates an event from the properties in the iCal (.ICS) format.
Syntax
def export_ics() -> str: ...
Remarks
The export_ics method is used to create a calendar object and export it in the iCal/ICS format, which can then be saved to disk and imported using any calendar software, even those that do not support CalDAV. The export_ics method will create the exact same data as the put_calendar_event method sends when adding or updating an event to a calendar.
Note that if export_ics is called immediately after a successful get_calendar_event, the unmodified calendar returned from the CalDAV server will be returned. However if any properties are changed between the get_calendar_event and export_ics calls, the class will generate and return a brand new event.
The following properties are used when creating a request with put_calendar_event or export_ics, and will be filled after calling get_calendar_event or import_ics. These will also be available from inside the on_event_details event, which is fired for each event received from the CalDAV server in response to a get_calendar_report.