You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-12-05 22:53:35 +02:00
13 lines
432 B
Plaintext
Vendored
13 lines
432 B
Plaintext
Vendored
Path1 = "/" + String(New UUID) + ".png";
|
|
Path2 = "/" + String(New UUID) + ".png";
|
|
|
|
Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
|
|
Image = "https://api.athenaeum.digital/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);
|