invoke

@JvmName(name = "WithApiKey")
operator fun invoke(apiKey: String): TmdbClient

Creates a new TmdbClient that authenticates all requests using the provided API key.

Parameters

apiKey

TMDb API key


@JvmName(name = "WithApiKeyProvider")
operator fun invoke(apiKeyProvider: TmdbApiKeyProvider): TmdbClient

Creates a new TmdbClient that authenticates all requests using the API key provided by the specified TmdbApiKeyProvider.

Parameters

apiKeyProvider

providing an API key