import_ics Method

Imports iCal data (contained in an ICS file) into the class's property list.

Syntax

def import_ics(calendar_data: str) -> None: ...

Remarks

This method is used to load calendar data from an external source into the class. You may then submit this data with a call to put_calendar_event. If you edit any of the class properties between importing and calling put_calendar_event, the class will re-generate the PUT request itself. If no properties are changed, the imported data will be submitted unaltered when calling put_calendar_event.

Note that the CalendarData you wish to import must contain a single VEVENT, VTODO, or VJOURNAL inside of a VCALENDAR. (A VTIMEZONE may be optionally contained inside the VCALENDAR as well). If multiple calendar objects are included in the imported data they will not be parsed correctly into properties, and the server's response to the put_calendar_event method is undefined.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Python Edition - Version 20.0 [Build 8307]