createSignedUrls
abstract suspend fun createSignedUrls(expiresIn: Duration, paths: Collection<String>, builder: SignedUrlsBuilder.() -> Unit = {}): List<SignedUrl>(source)
open suspend fun createSignedUrls(expiresIn: Duration, vararg paths: String, builder: SignedUrlsBuilder.() -> Unit = {}): List<SignedUrl>(source)
Creates signed urls for all specified paths. The urls will expire after expiresIn
Return
A list of SignedUrls
Parameters
expiresIn
The duration the urls are valid
paths
The paths to create urls for
builder
Optional modifier to add a force-download or cacheNonce to the created urls
Throws
RestException
or one of its subclasses if receiving an error response
HttpRequestTimeoutException
if the request timed out
HttpRequestException
on network related issues