ApiClient

Constructors

Link copied to clipboard
constructor(baseUrl: String, httpClientEngine: HttpClientEngine?, httpClientConfig: (HttpClientConfig<*>) -> Unit? = null, jsonBlock: Json)
constructor(baseUrl: String, httpClient: HttpClient)
constructor(baseUrl: String)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun setAccessToken(accessToken: String)

Set the access token for the first OAuth2 authentication.

Link copied to clipboard
fun setApiKey(apiKey: String, paramName: String? = null)

Set the API key value for the first API key authentication.

Link copied to clipboard
fun setApiKeyPrefix(apiKeyPrefix: String, paramName: String? = null)

Set the API key prefix for the first API key authentication.

Link copied to clipboard
fun setBearerToken(bearerToken: String)

Set the access token for the first Bearer authentication.

Link copied to clipboard
fun setPassword(password: String)

Set the password for the first HTTP basic authentication.

Link copied to clipboard
fun setUsername(username: String)

Set the username for the first HTTP basic authentication.