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/Get-calendar-list.mdx
T
Vitaly the Alpaca (bot) fd551e7cf4 Main build (Jenkins)
2024-12-24 20:21:21 +03:00

204 lines
5.2 KiB
Plaintext
Vendored

---
sidebar_position: 1
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get list of calendars
Gets an array of account calendars
`Function GetCalendarList(Val Token) Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Token | --token | String | ✔ | Token |
Returns: Map Of KeyAndValue - Array of calendar data mappings
<br/>
```bsl title="1C:Enterprise/OneScript code example"
Token = "ya29.a0ARW5m77a_UJFBB7n_sa8IAV8ycWLvz55tDaGZ7CsG1xiFYCSMm_kCJknxrGekLItp4p6eF054EBz7apAKFGnuUYhTJMy2lu6N7NTFAvHM...";
Result = OPI_GoogleCalendar.GetCalendarList(Token);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint gcalendar GetCalendarList \
--token "***"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint gcalendar GetCalendarList ^
--token "***"
```
</TabItem>
</Tabs>
```json title="Result"
[
{
"kind": "calendar#calendarListEntry",
"etag": "\"1713008096300000\"",
"id": "bayselonarrend@gmail.com",
"summary": "Тестовый календарь (изм.)",
"description": "ТестовоеОписание",
"timeZone": "Europe/Minsk",
"colorId": "19",
"backgroundColor": "#fffff0",
"foregroundColor": "#000000",
"accessRole": "owner",
"defaultReminders": [],
"notificationSettings": {
"notifications": [
{
"type": "eventCreation",
"method": "email"
},
{
"type": "eventChange",
"method": "email"
},
{
"type": "eventCancellation",
"method": "email"
},
{
"type": "eventResponse",
"method": "email"
}
]
},
"primary": true,
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
},
{
"kind": "calendar#calendarListEntry",
"etag": "\"1720626834830000\"",
"id": "ab71c432a2cd06ecad2f5c517b3540f04d56df7aadb6df1d7b001ea4d6ac4398@group.calendar.google.com",
"summary": "Тестовый календарь (изм.)",
"description": "Тестовое описание",
"timeZone": "Europe/Moscow",
"colorId": "6",
"backgroundColor": "#ffd800",
"foregroundColor": "#000000",
"accessRole": "owner",
"defaultReminders": [],
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
},
{
"kind": "calendar#calendarListEntry",
"etag": "\"1720626835116000\"",
"id": "c1aa2a1fe0ac12393b65eab12294daf3a09c12d5b7e54571774ddc001c4de938@group.calendar.google.com",
"summary": "\\u0422\\u0435\\u0441\\u0442\\u043e\\u0432\\u044b\\u0439 \\u043a\\u0430\\u043b\\u0435\\u043d\\u0434\\u0430\\u0440\\u044c",
"timeZone": "Europe/Moscow",
"colorId": "5",
"backgroundColor": "#ff7537",
"foregroundColor": "#000000",
"selected": true,
"accessRole": "owner",
"defaultReminders": [],
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
},
{
"kind": "calendar#calendarListEntry",
"etag": "\"1720626835376000\"",
"id": "ru.by#holiday@group.v.calendar.google.com",
"summary": "Праздники Беларуси",
"description": "Праздники и памятные даты Беларуси",
"timeZone": "Europe/Minsk",
"colorId": "8",
"backgroundColor": "#16a765",
"foregroundColor": "#000000",
"selected": true,
"accessRole": "reader",
"defaultReminders": [],
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
},
{
"kind": "calendar#calendarListEntry",
"etag": "\"1720626835701000\"",
"id": "b0b7ceee4056c516b0718eed0a1e4ad8694259935a6d2ffc056325df06232841@group.calendar.google.com",
"summary": "Тестовый календарь (изм.)",
"description": "Тестовое описание",
"timeZone": "Europe/Moscow",
"colorId": "6",
"backgroundColor": "#ffd800",
"foregroundColor": "#000000",
"accessRole": "owner",
"defaultReminders": [],
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
},
{
"kind": "calendar#calendarListEntry",
"etag": "\"1720626835924000\"",
"id": "25f80e38669312d27a9c7441f065887c6beaacf63af84ea67ebd9251a6b5f32b@group.calendar.google.com",
"summary": "Тестовый календарь (изм.)",
"description": "Тестовое описание",
"timeZone": "Europe/Moscow",
"colorId": "6",
"backgroundColor": "#ffd800",
"foregroundColor": "#000000",
"accessRole": "owner",
"defaultReminders": [],
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
},
{
"kind": "calendar#calendarListEntry",
"etag": "\"1720626836240000\"",
"id": "36c14edd62c430b5646cbcaecfc67ee7fe7252d1d315ba3b099efca66084f7ff@group.calendar.google.com",
"summary": "Тестовый календарь (изм.)",
"description": "Тестовое описание",
"timeZone": "Europe/Moscow",
"colorId": "11",
"backgroundColor": "#fbe983",
"foregroundColor": "#000000",
"selected": true,
"accessRole": "owner",
"defaultReminders": [],
"conferenceProperties": {
"allowedConferenceSolutionTypes": [
"hangoutsMeet"
]
}
},
...
```