1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-02-01 13:17:58 +02:00
2024-08-13 15:52:26 +03:00

64 lines
1.5 KiB
Markdown

---
sidebar_position: 25
---
# Get users daily tasks plan
Gets the task plan for the current users day
`Function GetDailyPlan(Val URL, Val Token = "") Export`
| Parameter | CLI option | Type | 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: [task.planner.getlist](https://dev.1c-bitrix.ru/rest_help/tasks/task/planner/getlist.php)
:::
<br/>
```bsl title="Code example"
URL = FunctionParameters["Bitrix24_URL"];
Result = OPI_Bitrix24.GetDailyPlan(URL);
OPI_TestDataRetrieval.WriteLog(Result, "GetDailyPlan (wh)", "Bitrix24");
URL = FunctionParameters["Bitrix24_Domain"];
Token = FunctionParameters["Bitrix24_Token"];
Result = OPI_Bitrix24.GetDailyPlan(URL, Token);
```
```sh title="CLI command example"
oint bitrix24 GetDailyPlan --url "b24-ar17wx.bitrix24.by" --token "fe3fa966006e9f06006b12e400000001000..."
```
```json title="Result"
{
"result": [],
"time": {
"start": 1720816513.42336,
"finish": 1720816513.45192,
"duration": 0.0285580158233643,
"processing": 0.000265121459960938,
"date_start": "2024-07-12T20:35:13+00:00",
"date_finish": "2024-07-12T20:35:13+00:00",
"operating_reset_at": 1720817113,
"operating": 0
}
}
```