1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-03-07 15:20:39 +02:00
2024-07-10 14:33:00 +03:00

795 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 Destination
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


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

<Binary file's binary data>