You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-05-22 10:05:29 +02:00
76 lines
1.9 KiB
Plaintext
76 lines
1.9 KiB
Plaintext
---
|
|
sidebar_position: 3
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Get list calendar
|
|
Gets a calendar from the user's list by ID
|
|
|
|
|
|
|
|
`Function GetListCalendar(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.a0AeDClZCVfxXCE-JAcPJed8p82WT_K0Jtttw0mCwT02IVORX3qB2e7AM-8OQCJa8ImTUNCA5F--f_CULx1mArjs-Se30Fonbdtroe7NaOe...";
|
|
Calendar = "498953a29d6cb0f89dc7d5a2a4f5783a10fcc566dce5c5eb9d7fa7c2c97f1aff@group.calendar.google.com";
|
|
|
|
Result = OPI_GoogleCalendar.GetListCalendar(Token, Calendar);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint gcalendar GetListCalendar \
|
|
--token "***" \
|
|
--calendar "5eb62cc3115851efa9e3df0a5a3bc7d677cc7e3569ab4251da5ab30f55bde0f0@group.calendar.google.com"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint gcalendar GetListCalendar ^
|
|
--token "***" ^
|
|
--calendar "5eb62cc3115851efa9e3df0a5a3bc7d677cc7e3569ab4251da5ab30f55bde0f0@group.calendar.google.com"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"kind": "calendar#calendarListEntry",
|
|
"etag": "\"1728454322717000\"",
|
|
"id": "48ff105e488eea0a588031479250116f2e769f150c2ca1274b7e79c4b057b46b@group.calendar.google.com",
|
|
"summary": "New name",
|
|
"description": "New description",
|
|
"timeZone": "Europe/Moscow",
|
|
"colorId": "6",
|
|
"backgroundColor": "#ffd800",
|
|
"foregroundColor": "#000000",
|
|
"accessRole": "owner",
|
|
"defaultReminders": [],
|
|
"conferenceProperties": {
|
|
"allowedConferenceSolutionTypes": [
|
|
"hangoutsMeet"
|
|
]
|
|
}
|
|
}
|
|
```
|