You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
Main build (Jenkins)
This commit is contained in:
@@ -8,15 +8,15 @@ import Tabs from '@theme/Tabs';
|
||||
import TabItem from '@theme/TabItem';
|
||||
|
||||
# Execute request
|
||||
Executes the request if it has been generated or set previously
|
||||
Executes the request if it was created earlier
|
||||
|
||||
|
||||
|
||||
`Function ExecuteRequest(Val Method) Export`
|
||||
`Function ExecuteRequest(Forced = False) Export`
|
||||
|
||||
| Parameter | CLI option | Type | Required | Description |
|
||||
|-|-|-|-|-|
|
||||
| Method | - | String | ✔ | Request HTTP method |
|
||||
| Forced | - | Boolean | ✖ | Attempted execution without additional checks |
|
||||
|
||||
|
||||
Returns: DataProcessorObject.OPI_HTTPClient - This processor object
|
||||
@@ -32,7 +32,15 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/get";
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize()
|
||||
.SetURL(URL)
|
||||
.ProcessRequest("GET", False)
|
||||
.ExecuteRequest() // <---
|
||||
.ReturnResponseAsJSONObject();
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -32,7 +32,14 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/get";
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize()
|
||||
.SetURL(URL)
|
||||
.ProcessRequest("GET", False)
|
||||
.ReturnConnection(); // <---
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -32,7 +32,14 @@ import TabItem from '@theme/TabItem';
|
||||
|
||||
|
||||
```bsl title="1C:Enterprise/OneScript code example"
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/get";
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize()
|
||||
.SetURL(URL)
|
||||
.ProcessRequest("GET", False)
|
||||
.ReturnRequest(); // <---
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user