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.a0AeDClZCuUGv3lVO8dyhcLNhY08vE-ingztWRKkv-QAvcs9f6z1x0StyUs2M2YRgdoHDpUUEeBm5wAfquh5Z2_afLxDoqTIrStzOWxDL66...";
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": "\"f-Xduc312TYuzWZZ-yIpBJJfeyo\"",
"id": "60613d53c4670abdceec3e7693ca475b0e88dc1678db7210521356b4940a6148@group.calendar.google.com",
"summary": "TestCalendar",
"timeZone": "Europe/Moscow",
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}