1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-27 21:48:56 +02:00
OpenIntegrations/docs/en/examples/VK/SavePictureToAlbum.txt
Vitaly the Alpaca (bot) 1e36e94449 Main build (Jenkins)
2024-10-02 09:14:30 +03:00

14 lines
540 B
Plaintext

Parameters = GetVKParameters();
ImageDescription = "AutoTestImage";
AlbumID = "305905563";
Image = "https://github.com/Bayselonarrend/OpenIntegrations/raw/main/service/test_data/picture.jpg"; // URL, Path to file or Binary Data
TFN = GetTempFileName("png");
CopyFile(Image, TFN);
Image = New BinaryData(TFN);
Result = OPI_VK.SaveImageToAlbum(AlbumID, Image, ImageDescription, Parameters);
Result = OPI_VK.SaveImageToAlbum(AlbumID, TFN, ImageDescription, Parameters);