TripsApi

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

Client for the VW BFF trip data endpoints.

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 getLastTrip(vin: String, type: TripType): Trip

Fetches the most recent trip of the given type.