Deepl Client
constructor(authKey: String, httpClientEngine: HttpClientEngine = defaultHttpClientEngine, apiUrl: String? = null, retryConfig: RetryConfig.() -> Unit? = null)(source)
Parameters
auth Key
Your DeepL API auth token (including the “:fx” suffix for free tokens!).
http Client Engine
Ktor HttpClientEngine to use for web requests. Default varies per build target.
api Url
The base URL where the DeepL API is hosted. Default is the official endpoint and auto-selects between free or pro endpoints.
retry Config
Builder function for changing the way DeeplClient retries failed requests. Requests with a status < 400 are never retried. See RetryConfig for more info.