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-settings-structure.mdx
Vitaly the Alpaca (bot) 14752c0d1e Main build (Jenkins)
2025-10-19 10:12:36 +03:00

110 lines
3.0 KiB
Plaintext
Vendored

---
sidebar_position: 8
description: Get calendar settings structure and other functions to work with Bitrix24 in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Bitrix24]
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get calendar settings structure
Gets the structure of the default calendar settings
`Function GetCalendarSettingsStructure(Val URL, Val Token = "") Export`
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
| 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.settings.get](https://apidocs.bitrix24.ru/api-reference/calendar/calendar-settings-get.html)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
Result = OPI_Bitrix24.GetCalendarSettingsStructure(URL);
URL = "b24-ar17wx.bitrix24.by";
Token = "3b1af468006e9f06006b12e400000001000...";
Result = OPI_Bitrix24.GetCalendarSettingsStructure(URL, Token);
```
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint bitrix24 GetCalendarSettingsStructure \
--url "b24-ar17wx.bitrix24.by" \
--token "***"
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint bitrix24 GetCalendarSettingsStructure ^
--url "b24-ar17wx.bitrix24.by" ^
--token "***"
```
</TabItem>
</Tabs>
```json title="Result"
{
"result": {
"work_time_start": "9",
"work_time_end": "19",
"year_holidays": "1.01,2.01,7.01,23.02,8.03,1.05,9.05,12.06,4.11",
"year_workdays": "31.12",
"week_holidays": [
"SA",
"SU"
],
"week_start": "MO",
"user_name_template": "#NAME# #LAST_NAME#",
"sync_by_push": "",
"user_show_login": "1",
"path_to_user": "/company/personal/user/#user_id#/",
"path_to_user_calendar": "/company/personal/user/#user_id#/calendar/",
"path_to_group": "/workgroups/group/#group_id#/",
"path_to_group_calendar": "/workgroups/group/#group_id#/calendar/",
"path_to_vr": "",
"path_to_rm": "",
"rm_iblock_type": "",
"rm_iblock_id": "",
"dep_manager_sub": "1",
"denied_superpose_types": [],
"pathes_for_sites": "",
"pathes": [],
"forum_id": "1",
"rm_for_sites": "1",
"path_to_type_company_calendar": "/calendar/",
"path_to_type_events": "",
"path_to_type_location": ""
},
"time": {
"start": 1760522731,
"finish": 1760522731.56978,
"duration": 0.569778919219971,
"processing": 0,
"date_start": "2025-10-15T10:05:31+00:00",
"date_finish": "2025-10-15T10:05:31+00:00",
"operating_reset_at": 1760523331,
"operating": 0
}
}
```