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:
16
docs/en/examples/HTTPClient/AddDataAsRelated.txt
vendored
Normal file
16
docs/en/examples/HTTPClient/AddDataAsRelated.txt
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
URL = "https://httpbin.org";
|
||||
URL = URL + "/post";
|
||||
|
||||
RandomArray = New Array;
|
||||
RandomArray.Add("A");
|
||||
RandomArray.Add("B");
|
||||
RandomArray.Add("C");
|
||||
|
||||
Data = New Structure("Field1,Field2,Field3", 10, "Text", RandomArray);
|
||||
|
||||
Result = OPI_HTTPRequests.NewRequest()
|
||||
.Initialize(URL)
|
||||
.StartMultipartBody(True, "related")
|
||||
.AddDataAsRelated(Data, "application/json; charset=UTF-8") // <---
|
||||
.ProcessRequest("POST")
|
||||
.ReturnResponseAsJSONObject();
|
||||
Reference in New Issue
Block a user