Skip to content

Latest commit

 

History

History
44 lines (30 loc) · 1.02 KB

File metadata and controls

44 lines (30 loc) · 1.02 KB

OpenMovieDatabase API

A kotlin wrapper for OMDb API powered by Ktor

How to build

Use the gradle wrapper to build the project.

gradlew build

Usage

Select an engine

Declare an HTTP engines in your project, for example:

dependencies {
    implementation("io.ktor:ktor-client-cio:$ktor_version")
}

Create requests

val omdb: OpenMovieDatabase = OmdbClient("apiKey")

val movie1: Movie = omdb.getMovieById("id")
val movie2: Movie = omdb.getMovieByTitle("title")

val search: SearchResult = omdb.searchFilms("query")

Roadmap

  • Support desktop or native platform
  • Support Poster API

Contributing

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.

License

This project is under Mozilla Public License Version 2.0