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.a0AW4XtxhtghlL7aK7VhJX0jOgNWau4CUoOEDkQBr4uJEjPidCjKm-4r4l7AoJnODBt7yblowJtvv_3vETd6CulW4V5zxxPx8TTvQAMESj7...";

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