1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-27 00:51:06 +02:00
Files
OpenIntegrations/docs/en/md/Integration_proxy_methods/Handlers-configuration/Add-requests-handler.mdx

42 lines
1.0 KiB
Plaintext
Raw Normal View History

2025-01-29 16:59:34 +03:00
---
2025-01-31 17:10:45 +03:00
sidebar_position: 1
2025-01-29 16:59:34 +03:00
---
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-31 21:58:41 +03:00
Project = "C:\Users\Administrator\AppData\Local\Temp\v8_8DF3_13.oint";
2025-01-30 19:59:05 +03:00
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
```