1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/HTTPClient/SetJsonBody.txt
Vitaly the Alpaca (bot) 58d505c297 Main build (Jenkins)
2025-04-25 21:52:05 +03:00

16 lines
420 B
Plaintext
Vendored

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)
.SetJsonBody(Data) // <---
.ProcessRequest("POST")
.ReturnResponseAsJSONObject();