1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/md/Google_Calendar/Calendar-metadata-management/Create-calendar.mdx
T
Vitaly the Alpaca (bot) b0f9376dac Main build (Jenkins)
2024-11-03 11:09:51 +03:00

70 lines
1.5 KiB
Plaintext

---
sidebar_position: 1
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# 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
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "ya29.a0AeDClZDbtPTdsMASWLXTAmyOPaFlWRnH_95-IQ3_vaFI6ThHieeCjeEC4cheU6_vsdkpr_o-77O-5uS5GSL-tYacOX9nIGeOh5NyANLDR...";
Name = "TestCalendar";
Result = OPI_GoogleCalendar.CreateCalendar(Token, Name);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint gcalendar CreateCalendar \
--token "***" \
--title "TestCalendar"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint gcalendar CreateCalendar ^
--token "***" ^
--title "TestCalendar"
```
</TabItem>
</Tabs>
```json title="Result"
{
"kind": "calendar#calendar",
"etag": "\"f-Xduc312TYuzWZZ-yIpBJJfeyo\"",
"id": "60613d53c4670abdceec3e7693ca475b0e88dc1678db7210521356b4940a6148@group.calendar.google.com",
"summary": "TestCalendar",
"timeZone": "Europe/Moscow",
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}
```