A Java library that provides a simple integration of the OMDB API (https://www.omdbapi.com/) to your Java application.
<dependency>
<groupId>ch.yoinc</groupId>
<artifactId>omdb-api</artifactId>
<version>1.0.1</version>
</dependency>
- Clone this repository
- Run
mvn clean install
to build and install to your local Maven repository. To install a local Maven repository, runmvn org.apache.maven.plugins:maven-install-plugin:2.5.2:install-file -Dfile=<path-to-file>
- Add the dependency to your main bot project's
pom.xml
:
To use the omdb-api library, you need to create an instance of the OmdbClient
class.
OmdbClient omdbClient = new OmdbClientBuilder()
.apiKey("your-api-key")
.build();
Once you have an instance of the OmdbClient
class, you can use it to make requests to the OMDB API.
OmdbMovie omdbMovie = omdbClient.getMovieByTitle("The Matrix", Plot.SHORT);
You can get an API key on the OMDB API website (http://www.omdbapi.com/apikey.aspx).
Create a bug ticket.
Support for the Poster API is currently not planned.