You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-23 22:05:15 +02:00
14 lines
537 B
Plaintext
Vendored
14 lines
537 B
Plaintext
Vendored
URL = "https://bin.openintegrations.dev";
|
|
URL = URL + "/post";
|
|
|
|
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
|
|
|
Result = OPI_HTTPRequests.NewRequest()
|
|
.Initialize(URL)
|
|
.StartMultipartBody()
|
|
.AddMultipartFormDataFile("file1", "pic.png", Image, "image/png")
|
|
.AddMultipartFormDataField("Field1", "Text") // <---
|
|
.AddMultipartFormDataField("Field2", "10") // <---
|
|
.ProcessRequest("POST")
|
|
.ReturnResponseAsJSONObject();
|