1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-21 01:50:24 +02:00
OpenIntegrations/docs/en/examples/VK/SavePictureToAlbum.txt

16 lines
557 B
Plaintext
Raw Normal View History

2024-08-13 13:35:37 +02:00
 Parameters = GetVKParameters();
ImageDescription = "AutoTestImage";
AlbumID = FunctionParameters["VK_AlbumID"];
Image = FunctionParameters["Picture"]; // 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);
OPI_TestDataRetrieval.WriteLog(Result, "SaveImageToAlbum", "VK");
Result = OPI_VK.SaveImageToAlbum(AlbumID, TFN, ImageDescription, Parameters);