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:
@@ -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();
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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();
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
```
|
||||
|
||||
|
||||
|
||||
@@ -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();
|
||||
```
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user