A kotlin wrapper for OMDb API powered by Ktor
Use the gradle wrapper to build the project.
gradlew build
Declare an HTTP engines in your project, for example:
dependencies {
implementation("io.ktor:ktor-client-cio:$ktor_version")
}
val omdb: OpenMovieDatabase = OmdbClient("apiKey")
val movie1: Movie = omdb.getMovieById("id")
val movie2: Movie = omdb.getMovieByTitle("title")
val search: SearchResult = omdb.searchFilms("query")
- Support desktop or native platform
- Support Poster API
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
This project is under Mozilla Public License Version 2.0