1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-27 12:32:33 +02:00

18 lines
626 B
Plaintext
Raw Normal View History

2024-08-13 14:35:37 +03:00
 Parameters = GetVKParameters();
Text = "Post from autotest";
URL = "https://github.com/Bayselonarrend/OpenIntegrations";
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Image2 = "https://openintegrations.dev/test_data/picture2.jpg"; // URL, Path or Binary Data
2024-08-13 14:35:37 +03:00
TFN = GetTempFileName("png");
CopyFile(Image2, TFN);
ImageArray = New Array;
ImageArray.Add(Image);
ImageArray.Add(TFN);
Result = OPI_VK.CreatePost(Text, ImageArray, True, URL, Parameters);
Result = OPI_VK.CreatePost(Text, Image, False , , Parameters);