Skip to main content

Download file

Gets file by ID

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

ParameterCLI optionTypeDescription
Token--tokenStringToken
Identifier--objectStringFile identifier
SavePath--outStringFile save path

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


Code example
  
Identifier = "1dg_MwwwPSPYT0p3y-8dvGWoapbwaaaaa";

Response = OPI_GoogleDrive.DownloadFile(Token, Identifier); //Map
Response = OPI_Tools.JSONString(Response); //String
CLI command example
    
oint gdrive DownloadFile --token %token% --object "1dg_MwwwPSPYT0p3y-8dvGWoapbwaaaaa" --out %out%

Result
<Binary file's binary data>