2024-08-13 16:04:54 +02:00
|
|
|
Text = "Text of post";
|
|
|
|
Title = "Post title";
|
2024-09-17 14:57:44 +02:00
|
|
|
Image1 = FunctionParameters["Picture"]; // URL, Path or Binary Data
|
|
|
|
Image2 = FunctionParameters["Picture2"]; // URL, Path or Binary Data
|
2024-08-13 16:04:54 +02:00
|
|
|
|
|
|
|
Files = New Map;
|
|
|
|
Files.Insert("1.png", Image1);
|
|
|
|
Files.Insert("2.png", Image2);
|
|
|
|
|
2024-09-17 14:57:44 +02:00
|
|
|
URL = FunctionParameters["Bitrix24_URL"];
|
2024-08-13 16:04:54 +02:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.CreatePost(URL, Text, , Files, Title, True);
|
|
|
|
|
2024-09-17 14:57:44 +02:00
|
|
|
URL = FunctionParameters["Bitrix24_Domain"];
|
|
|
|
Token = FunctionParameters["Bitrix24_Token"];
|
2024-08-13 16:04:54 +02:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.CreatePost(URL, Text, , Files, Title, , Token);
|