mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2025-04-11 11:41:56 +02:00
1.1 KiB
1.1 KiB
sidebar_position |
---|
6 |
Download file
Gets file by ID
Function DownloadFile(Val Token, Val Identifier, Val SavePath = "") Export
Parameter | CLI option | Type | Description |
---|---|---|---|
Token | --token | String | Token |
Identifier | --object | String | File identifier |
SavePath | --out | String | File save path |
Returns: BinaryData,String - Binary data or file path when SavePath parameter is specified
Token = "ya29.a0AcM612zmTq3HijDy5D8xu-llkoj4aTlkgkrZ4LGSZcpCOnX1Z6xu9IsTLXFZSJu8uVsYxHj0ih5glQrF0yWTomhAPTGm1M9Kk7ZvYIwpm...";
Identifier = "1jUonZ73Ck_Wyv5FDpsBr7UVSwx1mt0dp";
Result = OPI_GoogleDrive.DownloadFile(Token, Identifier);
oint gdrive DownloadFile --token %token% --object "1dg_MwwwPSPYT0p3y-8dvGWoapbwaaaaa" --out %out%
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…