You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
112 lines
2.8 KiB
Plaintext
Vendored
112 lines
2.8 KiB
Plaintext
Vendored
---
|
|
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
|
|
|
|
<br/>
|
|
|
|
:::tip
|
|
Method at API documentation: [calendar.user.settings.get](https://apidocs.bitrix24.ru/api-reference/calendar/calendar-user-settings-get.html)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
```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 = "c866e568006e9f06006b12e400000001000...";
|
|
|
|
Result = OPI_Bitrix24.GetCustomCalendarSettings(URL, Token);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint bitrix24 GetCustomCalendarSettings \
|
|
--url "b24-ar17wx.bitrix24.by" \
|
|
--token "***"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint bitrix24 GetCustomCalendarSettings ^
|
|
--url "b24-ar17wx.bitrix24.by" ^
|
|
--token "***"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```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": 1760044509,
|
|
"finish": 1760044509.6458,
|
|
"duration": 0.645800113677978,
|
|
"processing": 0,
|
|
"date_start": "2025-10-09T21:15:09+00:00",
|
|
"date_finish": "2025-10-09T21:15:09+00:00",
|
|
"operating_reset_at": 1760045109,
|
|
"operating": 0
|
|
}
|
|
}
|
|
```
|