Skip to content

A Kotlin wrapper for the Open Movie Database API based on Ktor

License

Notifications You must be signed in to change notification settings

codeall9/openmoviedb-api

Repository files navigation

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

About

A Kotlin wrapper for the Open Movie Database API based on Ktor

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages