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.a0ATi6K2sWW_31WLH0d9aK0qk0HJ-UfyvZDcLeBbF5bLU7QH09Bx2pXAupIw40USQVaxXqsovItVSt9swWuPdBDSA0eFaVPE0CbaU2OLQlyrnITI1VVXgZ_Gx2R...";
Name = "TestCalendar";

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