mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-06-04 23:37:46 +02:00
88 lines
2.3 KiB
Plaintext
Vendored
88 lines
2.3 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 7
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Set user participation status
|
|
Sets the event participation status for the current user
|
|
|
|
|
|
|
|
`Function SetUserParticipationStatus(Val URL, Val EventID, Val Status, Val Token = "") Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
|
|
| EventID | --event | Number | ✔ | Calednar event ID |
|
|
| Status | --status | String | ✔ | Participation status: Y (agreed), N (refused), Q (did not answer) |
|
|
| 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.meeting.status.set](https://apidocs.bitrix24.ru/api-reference/calendar/calendar-event/calendar-meeting-status-set.html)
|
|
:::
|
|
<br/>
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
|
|
EventID = "318";
|
|
Status = "Y";
|
|
|
|
Result = OPI_Bitrix24.SetUserParticipationStatus(URL, EventID, Status);
|
|
|
|
URL = "b24-ar17wx.bitrix24.by";
|
|
Token = "afd0a867006e9f06006b12e400000001000...";
|
|
EventID = "322";
|
|
|
|
Result = OPI_Bitrix24.SetUserParticipationStatus(URL, EventID, Status, Token);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint bitrix24 SetUserParticipationStatus \
|
|
--url "b24-ar17wx.bitrix24.by" \
|
|
--event 370 \
|
|
--status "Y" \
|
|
--token "***"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint bitrix24 SetUserParticipationStatus ^
|
|
--url "b24-ar17wx.bitrix24.by" ^
|
|
--event 370 ^
|
|
--status "Y" ^
|
|
--token "***"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"result": true,
|
|
"time": {
|
|
"start": 1739051124.54554,
|
|
"finish": 1739051124.63199,
|
|
"duration": 0.0864500999450684,
|
|
"processing": 0.060575008392334,
|
|
"date_start": "2025-02-09T00:45:24+03:00",
|
|
"date_finish": "2025-02-09T00:45:24+03:00",
|
|
"operating_reset_at": 1739051724,
|
|
"operating": 0
|
|
}
|
|
}
|
|
```
|