Skip to main content

Create calendar

Creates an empty calendar

Function CreateCalendar(Val Token, Val Name) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Name--titleStringName of the created calendar

Returns: Map Of KeyAndValue - serialized JSON response from Google

1C:Enterprise/OneScript code example
    Token = "ya29.a0Aa7pCA9fmPZk2eeWvC-VVPtSY4UzLqhBxacbBQw80RgQUw_wRm7_TGYppXdco1mWX6DVhkJklByQ4epXj_yOMf3j0BVPvNq966JHEVow5jOasNoGJdGn27Rq4...";
Name = "TestCalendar";

Result = OPI_GoogleCalendar.CreateCalendar(Token, Name);
    oint gcalendar CreateCalendar \
--token "***" \
--title "TestCalendar"
Result
{
"kind": "calendar#calendar",
"etag": "\"WSiET2qlGbBQjAWb6RK5d07FSdU\"",
"id": "a496c365852c9936527fa22bb23861c5b4d1e54beea67a875773f29e9ae7bc9c@group.calendar.google.com",
"summary": "TestCalendar",
"timeZone": "Europe/Moscow",
"dataOwner": "bayselonarrend@gmail.com",
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"***"
]
}
}