VehicleCommandsApi

class VehicleCommandsApi(authProvider: AuthProvider, sharedClient: HttpClient? = null) : Closeable

Client for the VW BFF vehicle command endpoints.

Sends control commands (charging, climate, lock/unlock, etc.) to vehicles. All calls automatically retry once on a 401 by refreshing the bearer token.

Parameters

authProvider

supplies valid OAuth tokens

sharedClient

optional HttpClient -- if null, an internal client is created and owned by this instance

Constructors

Link copied to clipboard
constructor(authProvider: AuthProvider, sharedClient: HttpClient? = null)

Functions

Link copied to clipboard
open override fun close()
Link copied to clipboard
suspend fun execute(request: CommandRequest): CommandResult

Sends a CommandRequest to the vehicle and returns a tracking CommandResult.