mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-05-29 23:17:45 +02:00
77 lines
2.0 KiB
Plaintext
Vendored
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.a0ARW5m7702-Ib_bOq69krqD5iUx89SC2lxGPxRJoBjqvSBqE7uKghOyAjwrL7ebNf6xqPzwD4wQfZlFvBrb7QsWlw5PGW_SvkFr57Y8Js...";
|
|
Calendar = "35e16313ea8eb86838be4408e9ebe8797c14e8b6e54a633ac7580fcbac4a51f6@group.calendar.google.com";
|
|
|
|
Result = OPI_GoogleCalendar.AddCalendarToList(Token, Calendar);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint gcalendar AddCalendarToList \
|
|
--token "***" \
|
|
--calendar "fb73fc4b6eba9e27c8c1feeb66a66e2d80659bc92c38f1479d3731e2aac5bf6a@group.calendar.google.com"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint gcalendar AddCalendarToList ^
|
|
--token "***" ^
|
|
--calendar "fb73fc4b6eba9e27c8c1feeb66a66e2d80659bc92c38f1479d3731e2aac5bf6a@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"
|
|
]
|
|
}
|
|
}
|
|
```
|