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:
13
docs/en/examples/HTTPClient/AddAWS4Authorization.txt
vendored
Normal file
13
docs/en/examples/HTTPClient/AddAWS4Authorization.txt
vendored
Normal 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();
|
||||
@@ -1,4 +1,4 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/get";
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
|
||||
9
docs/en/examples/HTTPClient/AddBearerAuthorization.txt
vendored
Normal file
9
docs/en/examples/HTTPClient/AddBearerAuthorization.txt
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/get";
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize()
|
||||
.SetURL(URL)
|
||||
.AddBearerAuthorization("123123") // <---
|
||||
.ProcessRequest("GET")
|
||||
.ReturnResponseAsJSONObject();
|
||||
2
docs/en/examples/HTTPClient/AddHeader.txt
vendored
2
docs/en/examples/HTTPClient/AddHeader.txt
vendored
@@ -1,4 +1,4 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/get";
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
|
||||
15
docs/en/examples/HTTPClient/AddOAuthV1Authorization.txt
vendored
Normal file
15
docs/en/examples/HTTPClient/AddOAuthV1Authorization.txt
vendored
Normal 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();
|
||||
2
docs/en/examples/HTTPClient/SetHeaders.txt
vendored
2
docs/en/examples/HTTPClient/SetHeaders.txt
vendored
@@ -1,4 +1,4 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/get";
|
||||
|
||||
Headers = New Map;
|
||||
|
||||
16
docs/en/examples/HTTPClient/SetOAuthV1Algorithm.txt
vendored
Normal file
16
docs/en/examples/HTTPClient/SetOAuthV1Algorithm.txt
vendored
Normal 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();
|
||||
22
docs/en/examples/HTTPClient/UseBodyFiledsAtOAuth.txt
vendored
Normal file
22
docs/en/examples/HTTPClient/UseBodyFiledsAtOAuth.txt
vendored
Normal 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();
|
||||
Reference in New Issue
Block a user