downloadAsset

abstract suspend fun downloadAsset(assetId: String, assetDomain: String?, assetToken: String?, tempFileSink: <Error class: unknown class>): NetworkResponse<Unit>

Downloads an asset, this will try to consume api v4 (federated aware endpoint)

Return

a NetworkResponse with a reference to an open Okio Source object from which one will be able to stream the data

Parameters

assetId

the asset identifier

assetDomain

the asset domain

assetToken

the asset token, can be null in case of public assets