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_BDTgQbn9c5rXhPK3FCakms_7oKkdIWE1CCQFnSPftb2RxvloVqnYOcnsAKhXrD0Gq8Tz2Kgn5IBXG5E25uksZfvvTtXob-jFcuj_9LZYs9La4HrcFk766...";
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": "\"Bep7OI4AuF7PfuvqDO90q9SQufg\"",
"id": "73c36eb1ab0dd34c3c2f298af8fdac687154aa19a316b297b75bb9d76c68ee39@group.calendar.google.com",
"summary": "TestCalendar",
"timeZone": "Europe/Moscow",
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}