mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-01-26 05:37:27 +02:00
19 lines
660 B
Plaintext
19 lines
660 B
Plaintext
Filename2 = "Picture2.jpg";
|
|
Name = "Picture1.jpg";
|
|
|
|
Image2 = FunctionParameters["Picture"]; // Local path, URL or Binary Data
|
|
Image = FunctionParameters["Picture2"]; // Local path, URL or Binary Data
|
|
|
|
DestinationID = 3;
|
|
|
|
URL = FunctionParameters["Bitrix24_URL"];
|
|
|
|
Result = OPI_Bitrix24.UploadFileToStorage(URL, Filename2, Image2, DestinationID);
|
|
|
|
OPI_TestDataRetrieval.WriteLog(Result, "UploadFileToStorage (wh)", "Bitrix24");
|
|
|
|
URL = FunctionParameters["Bitrix24_Domain"];
|
|
Token = FunctionParameters["Bitrix24_Token"];
|
|
|
|
Result = OPI_Bitrix24.UploadFileToStorage(URL, Name, Image, DestinationID, , Token);
|