Pull requests (e.g. support for more API endpoints, bugfixes) are welcome!
A Java wrapper around the TMDb v3 API using retrofit 2.
Add the following dependency to your Gradle project:
compile 'com.uwetrottmann:tmdb-java:0.10.1'
or your Maven project:
<dependency>
<groupId>com.uwetrottmann</groupId>
<artifactId>tmdb-java</artifactId>
<version>0.10.1</version>
</dependency>
If you rather use the released jar, add dependencies yourself as you see fit. You can find the required dependencies in pom.xml.
// Create an instance of the service you wish to use
// you can keep this around
Tmdb tmdb = new Tmdb();
tmdb.setApiKey("yourapikey");
MovieService movieService = tmdb.movieService();
//
// Call any of the available endpoints
Call<Movie> call = movieService.summary(550);
Movie movie = call.execute().body();
Call<Trailers> callTrailers = movieService.trailers(550);
Trailers trailers = callTrailers.execute().body();
See test cases in src/test/
for more examples.
tmdb-rx-java - adds RxAndroid support
Copyright 2013-2016 Uwe Trottmann
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.