You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-06-20 09:19:27 +02:00
Main build (Jenkins)
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/post";
|
||||
|
||||
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize(URL)
|
||||
.SetBinaryBody(Image)
|
||||
.ProcessRequest("POST")
|
||||
.ReturnResponse(); // <---
|
||||
@@ -0,0 +1,10 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/post";
|
||||
|
||||
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize(URL)
|
||||
.SetBinaryBody(Image)
|
||||
.ProcessRequest("POST")
|
||||
.ReturnResponseAsBinaryData(); // <---
|
||||
@@ -0,0 +1,10 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/post";
|
||||
|
||||
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize(URL)
|
||||
.SetBinaryBody(Image)
|
||||
.ProcessRequest("POST")
|
||||
.ReturnResponseAsJSONObject(); // <---
|
||||
@@ -0,0 +1,10 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/post";
|
||||
|
||||
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize(URL)
|
||||
.SetBinaryBody(Image)
|
||||
.ProcessRequest("POST")
|
||||
.ReturnResponseAsString(); // <---
|
||||
@@ -0,0 +1,10 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/get";
|
||||
|
||||
TFN = GetTempFileName();
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize(URL)
|
||||
.SetResponseFile(TFN) // <---
|
||||
.ProcessRequest("GET")
|
||||
.ReturnResponseFilename();
|
||||
Reference in New Issue
Block a user