createApi

fun createApi(baseUrl: String? = null, accessToken: String? = null, clientInfo: ERROR CLASS: Symbol not found for ClientInfo?? = options.clientInfo, deviceInfo: ERROR CLASS: Symbol not found for DeviceInfo?? = options.deviceInfo, httpClientOptions: ERROR CLASS: Symbol not found for HttpClientOptions = HttpClientOptions()): ERROR CLASS: Symbol not found for ApiClient

Create a new API instance to use in API services. The clientInfo and deviceInfo parameters are required when not passed as option in JellyfinOptions. The baseUrl is only required when HTTP calls are made.

Throws an IllegalStateException when the client or device information is missing.