VolvoCars

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

Creates a VolvoCars client with a static Bearer token.

This is a convenience factory for testing and short-lived scripts. For production apps, use VolvoCarsConfig with OAuthConfig for automatic token refresh.

Return

A configured VolvoCars instance

Parameters

apiKey

The VCC API key from the Volvo Developer Portal

token

The OAuth2 access token (will not be refreshed automatically)


Creates a VolvoCars client with full configuration.

Return

A configured VolvoCars instance

Parameters

config

Client configuration including authentication, timeouts, retry, and logging