TmdbClient

constructor(httpClientFactory: HttpClientFactory, apiKey: String)

Creates a TmdbClient using the specified HttpClientFactory and authenticating all requests using the specified API-Key.

Parameters

httpClientFactory
apiKey

constructor(httpClientFactory: HttpClientFactory, apiKeyProvider: TmdbApiKeyProvider)

Creates a TmdbClient using the specified HttpClientFactory and authenticating all requests using an API-Key provided by the specified TmdbApiKeyProvider.

The returned API-Key will not be cached, this is left to the actual provider implementation to enable scenarios where the API-Key may change dynamically.

Parameters

httpClientFactory
apiKeyProvider