download

suspend fun download(fileName: String, config: DownloadFileConfig? = null): ByteReadChannel

Downloads a file from the API.

Return

The ByteReadChannel of the downloaded file.

Parameters

fileName

The name of the file to download.

config

Optional configuration for the download.


suspend fun download(file: File, config: DownloadFileConfig? = null): ByteReadChannel

Downloads a file from the API.

Return

The ByteReadChannel of the downloaded file.

Parameters

file

The file to download.

config

Optional configuration for the download.