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

@@ -0,0 +1,13 @@
 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

@@ -1,4 +1,4 @@
 URL = "https://httpbin.org";
 URL = "https://httpbin.org";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -0,0 +1,9 @@
 URL = "https://httpbin.org";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()
.Initialize()
.SetURL(URL)
.AddBearerAuthorization("123123") // <---
.ProcessRequest("GET")
.ReturnResponseAsJSONObject();

View File

@@ -1,4 +1,4 @@
 URL = "https://httpbin.org";
 URL = "https://httpbin.org";
URL = URL + "/get";
Result = OPI_HTTPRequests.NewRequest()

View File

@@ -0,0 +1,15 @@
 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

@@ -1,4 +1,4 @@
 URL = "https://httpbin.org";
 URL = "https://httpbin.org";
URL = URL + "/get";
Headers = New Map;

View File

@@ -0,0 +1,16 @@
 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();

View File

@@ -0,0 +1,22 @@
 URL = "https://httpbin.org";
URL = URL + "/post";
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
Token = "***";
Secret = "***";
UsersKey = "***";
UsersSecret = "***";
Version = "1.0";
NewRequest = OPI_HTTPRequests.NewRequest().Initialize(URL);
Result = NewRequest
.StartMultipartBody()
.AddMultipartFormDataFile("file1", "pic.png", Image, "image/png")
.AddMultipartFormDataField("field1", "Text")
.AddMultipartFormDataField("field2", "10")
.UseBodyFiledsAtOAuth(False) // <---
.AddOauthV1Authorization(Token, Secret, UsersKey, UsersSecret, Version)
.ProcessRequest("POST")
.ReturnResponseAsJSONObject();