To get a Git project into your build:
Step 1. Add the JitPack repository to your build file
maven
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>
gradle
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
maven
<dependency>
<groupId>com.github.nextbss</groupId>
<artifactId>tmdbv3-api</artifactId>
<version>1.0</version>
</dependency>
gradle
dependencies {
implementation 'com.github.nextbss:tmdbv3-api:1.0'
}
Set api key
Get an instance
public class SomeClass{
TmdbApi tmdbApi = TmdbApi.getInstance("API_KEY");
}
public class SomeClass{
TmdbApi tmdbApi = TmdbApi.getInstance("API_KEY");
Movie movie = tmdbApi.movies().getDetailsRequestBuilder()
.movieId(458156)
.language(Languages.EN)
.appendToResponse(AppendToResponse.ACCOUNT_STATES, AppendToResponse.ALTERNATIVE_TITLES)
.send();
}
The library is available as open source under the terms of the MIT License.