mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-23 02:06:12 +02:00
87 lines
1.9 KiB
Markdown
87 lines
1.9 KiB
Markdown
|
---
|
||
|
sidebar_position: 6
|
||
|
---
|
||
|
|
||
|
# Get results list
|
||
|
Gets results list for task
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
<br/>
|
||
|
|
||
|
|
||
|
*Function GetResultsList(Val URL, Val TaskID, Val Token = "") Export*
|
||
|
|
||
|
| Parameter | CLI option | Type | Destination |
|
||
|
|-|-|-|-|
|
||
|
| URL | --url | String | URL of webhook or a Bitrix24 domain, when token used |
|
||
|
| TaskID | --task | Number, String | Task ID |
|
||
|
| Token | --token | String | Access token, when not-webhook method used |
|
||
|
|
||
|
|
||
|
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
|
||
|
|
||
|
|
||
|
```bsl title="Code example"
|
||
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/4swokunb3tk7h7dt/";
|
||
|
TaskID = "504";
|
||
|
|
||
|
Result = OPI_Bitrix24.GetResultsList(URL, TaskID);
|
||
|
|
||
|
|
||
|
URL = "b24-ar17wx.bitrix24.by";
|
||
|
Token = "56898d66006e9f06006b12e400000001000...";
|
||
|
|
||
|
Result = OPI_Bitrix24.GetResultsList(URL, TaskID, Token);
|
||
|
```
|
||
|
|
||
|
|
||
|
|
||
|
```sh title="CLI command example"
|
||
|
|
||
|
oint bitrix24 GetResultsList --url "b24-ar17wx.bitrix24.by" --task "504" --token "56898d66006e9f06006b12e400000001000..."
|
||
|
|
||
|
```
|
||
|
|
||
|
```json title="Result"
|
||
|
{
|
||
|
"result": [
|
||
|
{
|
||
|
"id": 130,
|
||
|
"taskId": 432,
|
||
|
"commentId": 1376,
|
||
|
"createdBy": 1,
|
||
|
"createdAt": "2024-07-05T13:38:22+00:00",
|
||
|
"updatedAt": "2024-07-05T13:38:22+00:00",
|
||
|
"status": 0,
|
||
|
"text": "The task has been changed, let's split up",
|
||
|
"formattedText": "The task has been changed, let's split up",
|
||
|
"files": []
|
||
|
},
|
||
|
{
|
||
|
"id": 128,
|
||
|
"taskId": 432,
|
||
|
"commentId": 1374,
|
||
|
"createdBy": 1,
|
||
|
"createdAt": "2024-07-05T13:38:21+00:00",
|
||
|
"updatedAt": "2024-07-05T13:38:21+00:00",
|
||
|
"status": 0,
|
||
|
"text": "The task has been changed, do not split up",
|
||
|
"formattedText": "The task has been changed, do not split up",
|
||
|
"files": []
|
||
|
}
|
||
|
],
|
||
|
"time": {
|
||
|
"start": 1720186708.49595,
|
||
|
"finish": 1720186708.54066,
|
||
|
"duration": 0.044705867767334,
|
||
|
"processing": 0.00980901718139648,
|
||
|
"date_start": "2024-07-05T13:38:28+00:00",
|
||
|
"date_finish": "2024-07-05T13:38:28+00:00",
|
||
|
"operating_reset_at": 1720187308,
|
||
|
"operating": 0
|
||
|
}
|
||
|
}
|
||
|
```
|