1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-07 23:03:08 +02:00
Files
OpenIntegrations/docs/en/md/Bitrix24/Calendar-events-management/Get-calendar-event.mdx

50 lines
1.2 KiB
Plaintext
Raw Normal View History

2025-01-27 21:50:57 +03:00
---
2025-02-07 16:44:33 +03:00
sidebar_position: 3
2025-01-27 21:50:57 +03:00
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Get calendar event
Gets a calendar event by ID
`Function GetCalendarEvent(Val URL, Val EventID, 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 | ✔ | Event ID to retrieve |
| 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.event.getbyid](https://apidocs.bitrix24.ru/api-reference/calendar/calendar-event/calendar-event-get-by-id.html)
:::
<br/>
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
2025-02-09 00:12:43 +03:00
EventID = "294";
2025-01-27 21:50:57 +03:00
Result = OPI_Bitrix24.GetCalendarEvent(URL, EventID);
URL = "b24-ar17wx.bitrix24.by";
2025-02-09 00:12:43 +03:00
Token = "67c7a767006e9f06006b12e400000001000...";
EventID = "298";
2025-01-27 21:50:57 +03:00
Result = OPI_Bitrix24.GetCalendarEvent(URL, EventID, Token);
```