Package-level declarations

Main client classes for interacting with Volvo APIs. Contains VolvoCars (the main API client implementing ConnectedVehicle, Energy, and Location interfaces) and VolvoCarsConfig (client configuration with support for logging, timeouts, retry, and proxy).

Types

Link copied to clipboard

Main entry point for Volvo Vehicle API operations.

Link copied to clipboard
data class VolvoCarsConfig(val apiKey: String, val oauth: OAuthConfig? = null, val token: String? = null, val logging: LoggingConfig = LoggingConfig(), val timeout: Timeout = Timeout(socket = 30.seconds), val headers: Map<String, String> = emptyMap(), val proxy: ProxyConfig? = null, val retry: RetryStrategy = RetryStrategy(), val circuitBreaker: CircuitBreakerConfig? = null, val engine: HttpClientEngine? = null, val httpClientConfig: HttpClientConfig<*>.() -> Unit = {})

Volvo API client configuration.

Functions

Link copied to clipboard

Creates a VolvoCars client with full configuration.

fun VolvoCars(apiKey: String, token: String): VolvoCars

Creates a VolvoCars client with a static Bearer token.