You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-11-25 22:12:29 +02:00
23 lines
793 B
Plaintext
Vendored
23 lines
793 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
|
|
|
|
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();
|