1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-01-28 05:46:35 +02:00
OpenIntegrations/docs/en/examples/VK/SavePictureToAlbum.txt

14 lines
501 B
Plaintext
Raw Normal View History

 Parameters = GetVKParameters();
ImageDescription = "AutoTestImage";
2024-09-24 14:17:36 +03:00
AlbumID = "305499809";
2024-09-24 14:17:36 +03:00
Image = "https://openintegrations.dev/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);