1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-16 09:38:28 +02:00
Files
OpenIntegrations/docs/en/md/Google_Calendar/Calendar-list-management/Add-calendar-to-list.mdx
T
Vitaly the Alpaca (bot) efdb3f63ac Main build (Jenkins)
2024-12-25 11:43:34 +03:00

77 lines
2.0 KiB
Plaintext
Vendored

---
sidebar_position: 2
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Add calendar to list
Adds an existing calendar to the user's list
`Function AddCalendarToList(Val Token, Val Calendar) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
| Calendar | --calendar | String | ✔ | Calendar ID |
Returns: Map Of KeyAndValue - serialized JSON response from Google
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "ya29.a0ARW5m77a_UJFBB7n_sa8IAV8ycWLvz55tDaGZ7CsG1xiFYCSMm_kCJknxrGekLItp4p6eF054EBz7apAKFGnuUYhTJMy2lu6N7NTFAvHM...";
Calendar = "d5b99f918ddb915db60bfaef45db5e1f403c459fb421f43c87c4e9ad25509814@group.calendar.google.com";
Result = OPI_GoogleCalendar.AddCalendarToList(Token, Calendar);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint gcalendar AddCalendarToList \
--token "***" \
--calendar "15ee9212025b862d88f66003d538b7124c89a88d4e1dcc56473fae7b6ce2fba5@group.calendar.google.com"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint gcalendar AddCalendarToList ^
--token "***" ^
--calendar "15ee9212025b862d88f66003d538b7124c89a88d4e1dcc56473fae7b6ce2fba5@group.calendar.google.com"
```
</TabItem>
</Tabs>
```json title="Result"
{
"kind": "calendar#calendarListEntry",
"etag": "\"1728454322437000\"",
"id": "48ff105e488eea0a588031479250116f2e769f150c2ca1274b7e79c4b057b46b@group.calendar.google.com",
"summary": "New name",
"description": "New description",
"timeZone": "Europe/Moscow",
"colorId": "4",
"backgroundColor": "#fa573c",
"foregroundColor": "#000000",
"selected": true,
"accessRole": "owner",
"defaultReminders": [],
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
}
```