createApi

fun createApi(baseUrl: String? = null, accessToken: String? = null, clientInfo: <Error class: unknown class>? = options.clientInfo, deviceInfo: <Error class: unknown class>? = options.deviceInfo, httpClientOptions: <Error class: unknown class> = HttpClientOptions()): <Error class: unknown class>

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.