mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-04-13 11:50:53 +02:00
42 lines
1.0 KiB
Plaintext
Vendored
42 lines
1.0 KiB
Plaintext
Vendored
---
|
|
sidebar_position: 2
|
|
---
|
|
|
|
import Tabs from '@theme/Tabs';
|
|
import TabItem from '@theme/TabItem';
|
|
|
|
# Add requests handler
|
|
Adds a new handler to the project
|
|
|
|
|
|
|
|
`Function AddRequestsHandler(Val Project, Val OintLibrary, Val OintFunction, Val Method = "GET") Export`
|
|
|
|
| Parameter | CLI option | Type | Required | Description |
|
|
|-|-|-|-|-|
|
|
| Project | --proj | String | ✔ | Project filepath |
|
|
| OintLibrary | --lib | String | ✔ | Library name in CLI command format |
|
|
| OintFunction | --func | String | ✔ | OpenIntegrations function name |
|
|
| Method | --method | String | ✖ | HTTP method that will process the handler: GET, POST, MULTIPART |
|
|
|
|
|
|
Returns: Structure Of KeyAndValue - Result of handler creation
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
|
|
```bsl title="1C:Enterprise/OneScript code example"
|
|
Project = "C:\Users\Administrator\AppData\Local\Temp\v8_8CEA_26.oint";
|
|
OintLibrary = "telegram";
|
|
OintFunction = "SendTextMessage";
|
|
|
|
Result = OPI_IntegrationProxy.AddRequestsHandler(Project, OintLibrary, OintFunction);
|
|
```
|
|
|
|
|
|
|
|
|
|
|