1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-21 22:43:09 +02:00

84 lines
2.0 KiB
Plaintext
Raw Normal View History

2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 20
---
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 chat files folder
Get information about folder for chat files
`Function GetChatFilesFolder(Val URL, Val ChatID, 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 |
| ChatID | --chat | String, Number | ✔ | Chat ID |
| 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: [im.disk.folder.get](https://dev.1c-bitrix.ru/learning/course/index.php?COURSE_ID=93&LESSON_ID=11483)
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"
2024-12-08 12:04:47 +03:00
URL = "https://b24-ar17wx.bitrix24.by/rest/1/ps5...";
2025-01-11 21:13:24 +03:00
ChatID = "1846";
2024-10-15 10:16:04 +03:00
Result = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID);
URL = "b24-ar17wx.bitrix24.by";
2025-01-11 21:13:24 +03:00
Token = "14bb8267006e9f06006b12e400000001000...";
ChatID = "1848";
2024-10-15 10:16:04 +03:00
Result = OPI_Bitrix24.GetChatFilesFolder(URL, ChatID, Token);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint bitrix24 GetChatFilesFolder \
2024-12-08 12:04:47 +03:00
--url "https://b24-ar17wx.bitrix24.by/rest/1/ps56vdxg63nq8fek" \
2025-01-10 12:07:46 +03:00
--chat 1810
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint bitrix24 GetChatFilesFolder ^
2024-12-08 12:04:47 +03:00
--url "https://b24-ar17wx.bitrix24.by/rest/1/ps56vdxg63nq8fek" ^
2025-01-10 12:07:46 +03:00
--chat 1810
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```json title="Result"
{
"result": {
"ID": 12610
},
"time": {
"start": 1728454911.13738,
"finish": 1728454911.19324,
"duration": 0.0558590888977051,
"processing": 0.0317718982696533,
"date_start": "2024-10-09T09:21:51+03:00",
"date_finish": "2024-10-09T09:21:51+03:00",
"operating_reset_at": 1728455511,
"operating": 0
}
}
```