1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-04 22:14:37 +02:00
OpenIntegrations/docs/en/md/Bitrix24/Timekeeping/Get-timekeeping-settings.mdx

91 lines
2.2 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 10
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# Get timekeeping settings
Gets user timekeeping settings
`Function GetTimekeepingSettings(Val URL, Val UserID = "", Val Token = "") Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
| UserID | --userid | String, Number | ✖ | Users ID. Current by default |
| Token | --token | String | ✖ | Access token, when app auth method used |
2024-10-15 10:16:04 +03:00
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
<br/>
:::tip
2024-11-21 13:27:18 +03:00
Method at API documentation: [timeman.settings](https://dev.1c-bitrix.ru/rest_help/timeman/base/timeman_settings.php)
2024-10-15 10:16:04 +03:00
:::
<br/>
2024-12-16 19:38:57 +03:00
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2025-01-18 17:35:34 +03:00
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
2024-10-15 10:16:04 +03:00
Result = OPI_Bitrix24.GetTimekeepingSettings(URL);
URL = "b24-ar17wx.bitrix24.by";
2025-01-27 21:50:57 +03:00
Token = "b4c59767006e9f06006b12e400000001000...";
2024-10-15 10:16:04 +03:00
UserID = 1;
Result = OPI_Bitrix24.GetTimekeepingSettings(URL, UserID, Token);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint bitrix24 GetTimekeepingSettings \
2024-10-22 08:59:24 +03:00
--url "b24-ar17wx.bitrix24.by" \
--userid 1 \
--token "***"
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint bitrix24 GetTimekeepingSettings ^
2024-10-22 08:59:24 +03:00
--url "b24-ar17wx.bitrix24.by" ^
--userid 1 ^
--token "***"
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```json title="Result"
{
"result": {
"UF_TIMEMAN": true,
"UF_TM_FREE": false,
"UF_TM_MAX_START": "09:15:00",
"UF_TM_MIN_FINISH": "17:45:00",
"UF_TM_MIN_DURATION": "08:00:00",
"UF_TM_ALLOWED_DELTA": "00:15:00",
"ADMIN": true
},
"time": {
"start": 1722332243.86487,
"finish": 1722332243.88732,
"duration": 0.0224521160125732,
"processing": 0.00417494773864746,
"date_start": "2024-07-30T09:37:23+00:00",
"date_finish": "2024-07-30T09:37:23+00:00",
"operating_reset_at": 1722332843,
"operating": 0
}
}
```