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) bec1c1661a Main build (Jenkins)
2024-10-15 21:15:56 +03:00

52 lines
1.1 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.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"
]
}
}
```