--- sidebar_position: 6 description: Get custom calendar settings 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 custom calendar settings Gets the current users custom calendar settings `Function GetCustomCalendarSettings(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
:::tip Method at API documentation: [calendar.user.settings.get](https://apidocs.bitrix24.ru/api-reference/calendar/calendar-user-settings-get.html) :::
```bsl title="1C:Enterprise/OneScript code example" URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m..."; Result = OPI_Bitrix24.GetCustomCalendarSettings(URL); URL = "b24-ar17wx.bitrix24.by"; Token = "4f8db968006e9f06006b12e400000001000..."; Result = OPI_Bitrix24.GetCustomCalendarSettings(URL, Token); ``` ```bash oint bitrix24 GetCustomCalendarSettings \ --url "b24-ar17wx.bitrix24.by" \ --token "***" ``` ```batch oint bitrix24 GetCustomCalendarSettings ^ --url "b24-ar17wx.bitrix24.by" ^ --token "***" ``` ```json title="Result" { "result": { "view": "month", "CalendarSelCont": false, "SPCalendarSelCont": false, "meetSection": "14", "crmSection": false, "showDeclined": true, "denyBusyInvitation": false, "collapseOffHours": "N", "showWeekNumbers": "N", "showTasks": "Y", "syncTasks": "N", "showCompletedTasks": "N", "lastUsedSection": false, "sendFromEmail": false, "defaultSections": [], "syncPeriodPast": 3, "syncPeriodFuture": 12, "defaultReminders": { "fullDay": { "type": "daybefore", "before": 0, "time": 480 }, "withTime": { "type": "min", "count": 15 } }, "timezoneName": "Europe/Moscow", "timezoneOffsetUTC": 10800, "timezoneDefaultName": "" }, "time": { "start": 1739051130.1348, "finish": 1739051130.16337, "duration": 0.0285720825195312, "processing": 0.00425004959106445, "date_start": "2025-02-09T00:45:30+03:00", "date_finish": "2025-02-09T00:45:30+03:00", "operating_reset_at": 1739051730, "operating": 0 } } ```