1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2024-12-29 02:57:35 +02:00
OpenIntegrations/docs/en/examples/YandexDisk/UploadFile.txt

13 lines
431 B
Plaintext
Raw Normal View History

 Path1 = "/" + String(New UUID) + ".png";
Path2 = "/" + String(New UUID) + ".png";
2024-09-17 14:55:34 +02:00
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
Image = "https://openintegrations.dev/test_data/picture.jpg"; // URL
TFN = GetTempFileName("png"); // Path
CopyFile(Image, TFN);
Result = OPI_YandexDisk.UploadFile(Token, Path1, Image, True);
Result = OPI_YandexDisk.UploadFile(Token, Path2, TFN, True);