MdbV1Client
constructor(auth: CatalogAuth, baseUrl: String = DefaultBaseUrl, block: HttpClientConfig<*>.() -> Unit = {})(source)
Creates a client that uses the platform default engine.
Parameters
auth
Refresh token or access token
baseUrl
Catalog API root, including a trailing slash
block
Extra Ktor configuration applied before this client sets expectSuccess
constructor(engine: HttpClientEngine, auth: CatalogAuth, baseUrl: String = DefaultBaseUrl, block: HttpClientConfig<*>.() -> Unit = {})(source)
Creates a client that uses the given engine.
Tests pass io.ktor.client.engine.mock.MockEngine. Applications pass an engine of their choice. This library does not bundle one.
Parameters
engine
Ktor engine
auth
Refresh token or access token
baseUrl
Catalog API root, including a trailing slash
block
Extra Ktor configuration applied before this client sets expectSuccess