1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-04-07 07:10:01 +02:00
Vitaly the Alpaca (bot) 49731dd2e5 Main build (Jenkins)
2024-09-27 21:04:12 +03:00

902 B

sidebar_position
7

Download file

Downloads a file at the specified path

Function DownloadFile(Val Token, Val Path, Val SavePath = "") Export

Parameter CLI option Type Description
Token --token String Token
Path --path String Path to the file for downloading
SavePath --out String File save path

Returns: BinaryData,String - Binary data or file path when SavePath parameter is specified


    Token = "y0_AgAAAABdylaOAAs0QgAAAAD5i-a...";
    Path  = "/81c378eb-eaf3-446c-9b78-b89c94fd8e50.png";

    Result = OPI_YandexDisk.DownloadFile(Token, Path);
    
  oint yadisk DownloadFile --token %token% --path "/alpaca.png" --out %out%

<Binary file's binary data>