1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-21 12:17:20 +02:00

42 lines
1.0 KiB
Plaintext
Raw Normal View History

2025-01-29 16:59:34 +03:00
---
sidebar_position: 2
---
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
# Add requests handler
Adds a new handler to the project
2025-01-30 19:59:05 +03:00
`Function AddRequestsHandler(Val Project, Val OintLibrary, Val OintFunction, Val Method = "GET") Export`
2025-01-29 16:59:34 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| Project | --proj | String | ✔ | Project filepath |
2025-01-30 19:59:05 +03:00
| OintLibrary | --lib | String | ✔ | Library name in CLI command format |
2025-01-29 23:01:38 +03:00
| OintFunction | --func | String | ✔ | OpenIntegrations function name |
2025-01-29 16:59:34 +03:00
| Method | --method | String | ✖ | HTTP method that will process the handler: GET, POST, MULTIPART |
2025-01-29 23:01:38 +03:00
Returns: Structure Of KeyAndValue - Result of handler creation
2025-01-29 16:59:34 +03:00
<br/>
```bsl title="1C:Enterprise/OneScript code example"
2025-01-30 19:59:05 +03:00
Project = "C:\Users\Administrator\AppData\Local\Temp\v8_8CEA_26.oint";
OintLibrary = "telegram";
OintFunction = "SendTextMessage";
2025-01-29 16:59:34 +03:00
2025-01-30 19:59:05 +03:00
Result = OPI_IntegrationProxy.AddRequestsHandler(Project, OintLibrary, OintFunction);
2025-01-29 16:59:34 +03:00
```