1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-06-29 00:51:51 +02:00
Files
OpenIntegrations/docs/en/md/Yandex_Disk/File-and-folder-management/Download-file.md

42 lines
815 B
Markdown
Raw Normal View History

---
sidebar_position: 7
---
# Download file
Downloads a file at the specified path
2024-07-10 13:58:29 +03:00
`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
2024-07-10 14:05:58 +03:00
<br/>
2024-07-10 13:58:29 +03:00
```bsl title="Code example"
Path = "/alpaca.png";
Result = OPI_YandexDisk.DownloadFile(Token, Path);
```
```sh title="CLI command example"
oint yadisk DownloadFile --token %token% --path "/alpaca.png" --out %out%
```
```json title="Result"
2024-08-14 09:06:31 +03:00
<Binary file's binary data>
```