1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-05-27 23:07:37 +02:00
Vitaly the Alpaca (bot) 4966c38cd7 Main build (Jenkins)
2024-09-16 19:32:17 +03:00

1.0 KiB

sidebar_position
sidebar_position
11

Download file

Downloads a file by the specified path or ID

Function DownloadFile(Val Token, Val Path) Export

Parameter CLI option Type Description
Token --token String Token
Path --path String Path or ID of the file

Returns: BinaryData - binary data of the file


    Token = "sl.B8qNQrapBwdKlUxK9u1kzEIubZPglTP1HW7SS2eULe9E3cG8zqvRiIHoYfVTTG5v0bUTVYp7dX...";
    Path  = "/New/pic.png";

    Result = OPI_Dropbox.DownloadFile(Token, Path);
    
  oint dropbox DownloadFile --token "sl.B6AQWp9MlZlz4iaf41whVKxX9-MXeCiQhPRe4YIRxFmZ3zHsdjmOAatzgaWVhqmlIOvDD6WIUQ..." --path %path%

NOT JSON: FF D8 FF E1 54 C1 45 78 69 66 00 00 49 49 2A 00 08 00 00 00 0B 00 0E 01 02 00 20 00 00 00 92 00 00 00 0F 01 02 00 05 00 00 00 B2 00 00 00 10 01 02 00 07 00 00 00 B8 00 00 00 12 01 03 00 01 00