Skip to content

nextbss/tmdbv3Api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

The Movie DB Java API

Usage

Download

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'
}

Configuring api key

Set api key

Get an instance

public class SomeClass{
    TmdbApi tmdbApi = TmdbApi.getInstance("API_KEY");
}

get movie details

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();
}

License

The library is available as open source under the terms of the MIT License.

About

api to interact with the movie database v3 api

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published