Create calendar
Creates an empty calendar
Function CreateCalendar(Val Token, Val Name) Export
Parameter | CLI option | Type | Required | Description |
---|---|---|---|---|
Token | --token | String | ✔ | Token |
Name | --title | String | ✔ | Name of the created calendar |
Returns: Map Of KeyAndValue - serialized JSON response from Google
1C:Enterprise/OneScript code example
Token = "ya29.a0AQQ_BDQ_0g6De1s1jLOYbrGQ43QDri_VRPre92E-_aUXJNk52_zY1j3A74665Q7FVMzsgnjqjKN14ljBwB0PlswTyjZlgxcBIDMnuqIbFLhH8Hcxc5NfKIOpS...";
Name = "TestCalendar";
Result = OPI_GoogleCalendar.CreateCalendar(Token, Name);
- Bash
- CMD/Bat
oint gcalendar CreateCalendar \
--token "***" \
--title "TestCalendar"
oint gcalendar CreateCalendar ^
--token "***" ^
--title "TestCalendar"
Result
{
"kind": "calendar#calendar",
"etag": "\"W3-VxJAwKsZYp5hlVlYtnjXTAUQ\"",
"id": "cb2fc2c8adb1cfce485c65a11d46c99dff03108a84fa07d840fc420bf5f61b24@group.calendar.google.com",
"summary": "TestCalendar",
"timeZone": "Europe/Moscow",
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}