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.a0ATi6K2tVhkOEu91I_FKDEZ7_olNcPRKrwKbGh7GiFIzwDZjaTNm46ErGj-Lju2am1aAUurgQyVnv0f3G4L7keHSXYNhuCPGvTvzjRdPQJNz_0LzKWjviK54u4...";
Name = "TestCalendar";

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