2024-10-15 10:50:56 +03:00
|
|
|
---
|
2024-10-15 10:16:04 +03:00
|
|
|
sidebar_position: 1
|
|
|
|
|
---
|
|
|
|
|
|
2024-10-15 10:50:56 +03:00
|
|
|
import Tabs from '@theme/Tabs';
|
|
|
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
|
|
2024-10-15 10:16:04 +03:00
|
|
|
# Create calendar
|
|
|
|
|
Creates an empty calendar
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
`Function CreateCalendar(Val Token, Val Name) Export`
|
|
|
|
|
|
|
|
|
|
| Parameter | CLI option | Type | Description |
|
|
|
|
|
|-|-|-|-|
|
|
|
|
|
| Token | --token | String | Token |
|
|
|
|
|
| Name | --title | String | Name of the created calendar |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Returns: Map Of KeyAndValue - serialized JSON response from Google
|
|
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```bsl title="Code example"
|
|
|
|
|
Token = "ya29.a0AcM612zdAe2M8Ywdxt7xmK1VAAj2m3yjTdP1Ap8cFmqbE8lVngjIAujPtjc_c94MCuKNLfn7MSssBd6NfMXDQDrHMUv7Fgjp7cjuXk68n...";
|
|
|
|
|
Name = "TestCalendar";
|
|
|
|
|
|
|
|
|
|
Result = OPI_GoogleCalendar.CreateCalendar(Token, Name);
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```json title="Result"
|
|
|
|
|
{
|
|
|
|
|
"kind": "calendar#calendar",
|
|
|
|
|
"etag": "\"f-Xduc312TYuzWZZ-yIpBJJfeyo\"",
|
|
|
|
|
"id": "60613d53c4670abdceec3e7693ca475b0e88dc1678db7210521356b4940a6148@group.calendar.google.com",
|
|
|
|
|
"summary": "TestCalendar",
|
|
|
|
|
"timeZone": "Europe/Moscow",
|
|
|
|
|
"conferenceProperties": {
|
|
|
|
|
"allowedConferenceSolutionTypes": [
|
|
|
|
|
"hangoutsMeet"
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
```
|