1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/md/Bitrix24/Calendars-management/Get-calendar-list.mdx

51 lines
1.3 KiB
Plaintext
Raw Normal View History

2025-01-18 17:35:34 +03:00
---
sidebar_position: 1
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get list of calendars
Gets a list of calendars of the specified owner
`Function GetCalendarList(Val URL, Val OwnerID, Val Type, Val Token = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
| OwnerID | --owner | String, Number | ✔ | Calendar owner ID |
2025-02-06 20:58:53 +03:00
| Type | --type | String | ✔ | Calendar type: user, group, company_calendar, location, etc/. |
2025-01-18 17:35:34 +03:00
| Token | --token | String | ✖ | Access token, when app auth method used |
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
<br/>
:::tip
Method at API documentation: [calendar.section.get](https://apidocs.bitrix24.ru/api-reference/calendar/calendar-section-get.html)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
OwnerID = 1;
Type = "user";
Result = OPI_Bitrix24.GetCalendarList(URL, OwnerID, Type);
URL = "b24-ar17wx.bitrix24.by";
2025-02-09 00:12:43 +03:00
Token = "67c7a767006e9f06006b12e400000001000...";
2025-01-18 17:35:34 +03:00
Result = OPI_Bitrix24.GetCalendarList(URL, OwnerID, Type, Token);
```