Skip to main content

Clear primary calendar

Clears the event list of the primary calendar

Function ClearMainCalendar(Val Token) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken

Returns: Map Of KeyAndValue - serialized JSON response from Google


1C:Enterprise/OneScript code example
    Token = "ya29.a0AW4XtxgOTUonqiJAYqYtxcBh8MI1VxhOH0B9hCii3RQaZlp1PVWulwBqV-y7CkKAad7Ofs4NlHXhJ3-Qe1lj4xEd-ubK_QpjEkbdCVoUW...";

Result = OPI_GoogleCalendar.ClearMainCalendar(Token);
    oint gcalendar ClearMainCalendar \
--token "***"
Result
null