1
0
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:
Vitaly the Alpaca (bot)
2025-05-09 21:49:23 +03:00
parent 21701d24ae
commit 805a6881c8
253 changed files with 8958 additions and 8282 deletions

View File

@@ -35,7 +35,19 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://httpbin.org";
URL = URL + "/get";
AccessKey = "AccessKey";
SecretKey = "SecretKey";
Region = "Region";
Result = OPI_HTTPRequests.NewRequest()
.Initialize()
.SetURL(URL)
.AddAWS4Authorization(AccessKey, SecretKey, Region) // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();
```

View File

@@ -33,7 +33,7 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://httpbin.org";
URL = "https://httpbin.org";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -27,7 +27,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)
.AddBearerAuthorization("123123") // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();
```

View File

@@ -35,7 +35,21 @@ By default, HMAC-SHA256 is used to create the signature. To change the algorithm
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://httpbin.org";
URL = URL + "/get";
Token = "***";
Secret = "***";
UsersKey = "***";
UsersSecret = "***";
Version = "1.0";
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.StartMultipartBody()
.AddOAuthV1Authorization(Token, Secret, UsersKey, UsersSecret, Version) // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();
```

View File

@@ -28,7 +28,22 @@ import TabItem from '@theme/TabItem';
```bsl title="1C:Enterprise/OneScript code example"
URL = "https://httpbin.org";
URL = URL + "/get";
Token = "***";
Secret = "***";
UsersKey = "***";
UsersSecret = "***";
Version = "1.0";
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.StartMultipartBody()
.AddOAuthV1Authorization(Token, Secret, UsersKey, UsersSecret, Version)
.SetOAuthV1Algorithm("HMAC", "SHA1") // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();
```