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.a0AQQ_BDTgQbn9c5rXhPK3FCakms_7oKkdIWE1CCQFnSPftb2RxvloVqnYOcnsAKhXrD0Gq8Tz2Kgn5IBXG5E25uksZfvvTtXob-jFcuj_9LZYs9La4HrcFk766...";

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