You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-29 22:27:42 +02:00
189 lines
4.5 KiB
Plaintext
Vendored
189 lines
4.5 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 3
|
|
description: Get calendar event and other functions to work with Bitrix24 in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
|
|
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Bitrix24]
|
|
---
|
|
|
|
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...";
|
|
EventID = "2748";
|
|
|
|
Result = OPI_Bitrix24.GetCalendarEvent(URL, EventID);
|
|
|
|
URL = "b24-ar17wx.bitrix24.by";
|
|
Token = "8a1bee68006e9f06006b12e400000001000...";
|
|
EventID = "2752";
|
|
|
|
Result = OPI_Bitrix24.GetCalendarEvent(URL, EventID, Token);
|
|
```
|
|
|
|
|
|
<Tabs>
|
|
|
|
<TabItem value="bash" label="Bash" default>
|
|
```bash
|
|
oint bitrix24 GetCalendarEvent \
|
|
--url "b24-ar17wx.bitrix24.by" \
|
|
--event 2792 \
|
|
--token "***"
|
|
```
|
|
</TabItem>
|
|
|
|
<TabItem value="bat" label="CMD/Bat" default>
|
|
```batch
|
|
oint bitrix24 GetCalendarEvent ^
|
|
--url "b24-ar17wx.bitrix24.by" ^
|
|
--event 2792 ^
|
|
--token "***"
|
|
```
|
|
</TabItem>
|
|
</Tabs>
|
|
|
|
|
|
```json title="Result"
|
|
{
|
|
"result": {
|
|
"ID": "2792",
|
|
"PARENT_ID": "2792",
|
|
"DELETED": "N",
|
|
"CAL_TYPE": "user",
|
|
"OWNER_ID": "1",
|
|
"NAME": "New event",
|
|
"DATE_FROM": "16.10.2025 10:04:00",
|
|
"DATE_TO": "16.10.2025 11:04:00",
|
|
"ORIGINAL_DATE_FROM": null,
|
|
"TZ_FROM": "Europe/Minsk",
|
|
"TZ_TO": "Europe/Minsk",
|
|
"TZ_OFFSET_FROM": "10800",
|
|
"TZ_OFFSET_TO": "10800",
|
|
"DATE_FROM_TS_UTC": "1760587463",
|
|
"DATE_TO_TS_UTC": "1763193840",
|
|
"DT_SKIP_TIME": "N",
|
|
"DT_LENGTH": 3600,
|
|
"EVENT_TYPE": null,
|
|
"CREATED_BY": "1",
|
|
"DATE_CREATE": "15.10.2025 13:04:29",
|
|
"TIMESTAMP_X": "15.10.2025 13:04:29",
|
|
"DESCRIPTION": "Event description",
|
|
"PRIVATE_EVENT": "1",
|
|
"ACCESSIBILITY": "quest",
|
|
"IMPORTANCE": "normal",
|
|
"IS_MEETING": true,
|
|
"MEETING_STATUS": "H",
|
|
"MEETING_HOST": "1",
|
|
"MEETING": {
|
|
"HOST_NAME": "Антон Титовец",
|
|
"NOTIFY": true,
|
|
"REINVITE": false,
|
|
"ALLOW_INVITE": true,
|
|
"HIDE_GUESTS": true,
|
|
"MEETING_CREATOR": 1,
|
|
"LANGUAGE_ID": "ru",
|
|
"MAIL_FROM": false
|
|
},
|
|
"LOCATION": "Office",
|
|
"REMIND": [
|
|
{
|
|
"type": "day",
|
|
"count": 1
|
|
}
|
|
],
|
|
"COLOR": "#230000",
|
|
"RRULE": {
|
|
"FREQ": "DAILY",
|
|
"COUNT": 3,
|
|
"INTERVAL": 10,
|
|
"UNTIL": "26.10.2025",
|
|
"~UNTIL": "26.10.2025",
|
|
"UNTIL_TS": 1761436800
|
|
},
|
|
"EXDATE": "",
|
|
"DAV_XML_ID": "20251016T070400Z-4d5ac359508d8127cc9e50358c48d53e@b24-ar17wx.bitrix24.by",
|
|
"G_EVENT_ID": "",
|
|
"DAV_EXCH_LABEL": "",
|
|
"CAL_DAV_LABEL": "",
|
|
"VERSION": "1",
|
|
"ATTENDEES_CODES": [
|
|
"U1",
|
|
"U10"
|
|
],
|
|
"RECURRENCE_ID": null,
|
|
"RELATIONS": "",
|
|
"SECTION_ID": "1524",
|
|
"SYNC_STATUS": null,
|
|
"UF_CRM_CAL_EVENT": false,
|
|
"UF_WEBDAV_CAL_EVENT": false,
|
|
"SECTION_DAV_XML_ID": null,
|
|
"DATE_FROM_FORMATTED": "Thu Oct 16 2025 10:04:00",
|
|
"DATE_TO_FORMATTED": "Thu Oct 16 2025 11:04:00",
|
|
"IS_DAYLIGHT_SAVING_TZ": "N",
|
|
"SECT_ID": "1524",
|
|
"OPTIONS": null,
|
|
"ATTENDEE_LIST": [
|
|
{
|
|
"id": 1,
|
|
"entryId": "2792",
|
|
"status": "H"
|
|
},
|
|
{
|
|
"id": 10,
|
|
"entryId": "2794",
|
|
"status": "Q"
|
|
}
|
|
],
|
|
"COLLAB_ID": null,
|
|
"~RRULE_DESCRIPTION": "каждый 10-й день, от 16.10.2025 до 26.10.2025",
|
|
"attendeesEntityList": [
|
|
{
|
|
"entityId": "user",
|
|
"id": 1
|
|
},
|
|
{
|
|
"entityId": "user",
|
|
"id": 10
|
|
}
|
|
],
|
|
"~DESCRIPTION": "Event description",
|
|
"~USER_OFFSET_FROM": 0,
|
|
"~USER_OFFSET_TO": 0
|
|
},
|
|
"time": {
|
|
"start": 1760522684,
|
|
"finish": 1760522684.09109,
|
|
"duration": 0.0910859107971191,
|
|
"processing": 0,
|
|
"date_start": "2025-10-15T10:04:44+00:00",
|
|
"date_finish": "2025-10-15T10:04:44+00:00",
|
|
"operating_reset_at": 1760523284,
|
|
"operating": 0
|
|
}
|
|
}
|
|
```
|