1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-05-22 10:05:29 +02:00
Files
OpenIntegrations/docs/en/examples/VK/SavePictureToAlbum.txt
T
Vitaly the Alpaca (bot) 2f65e68ce4 Main build (Jenkins)
2024-11-11 22:11:22 +03:00

14 lines
502 B
Plaintext

Parameters = GetVKParameters();
ImageDescription = "AutoTestImage";
AlbumID = "306474173";
Image = "https://api.athenaeum.digital/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);