standalone
Provides a straightforward way to create a TmdbClient instance that uses the HttpClient implementation from the http-client-java11
module.
This makes it independent of any framework like Spring or Micronaut.
To create a TmdbClient
simply use the factory method (Java) or invoke operator (Kotlin):
import io.v47.tmdb.StandaloneTmdbClient;
public class Java {
public static final TmdbClient tmdbClient = StandaloneTmdbClient.WithApiKey("your api key");
}
Content copied to clipboard
import io.v47.tmdb.StandaloneTmdbClient
val tmdbClient = StandaloneTmdbClient("your api key")
Content copied to clipboard