Skip to content

A Java wrapper around themoviedb.org API v3 using retrofit with RxAndroid support. It is still incomplete, pull requests against dev welcome.

License

Notifications You must be signed in to change notification settings

migueljteixeira/tmdb-rx-java

 
 

Repository files navigation

Pull requests (e.g. support for more API endpoints, bugfixes) against dev are welcome!

tmdb-rx-java

A Java wrapper around the TMDb v3 API using retrofit with RxAndroid support.

Usage

Maven Central version

Add the following dependency to your Gradle project:

compile 'com.github.migueljteixeira:tmdb-rx-java:0.9.1'

or your Maven project:

<dependency>
    <groupId>com.github.migueljteixeira</groupId>
    <artifactId>tmdb-rx-java</artifactId>
    <version>0.9.1</version>
</dependency>

Additional binaries and dependency information for can be found at http://search.maven.org.

Example

// 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
movieService.summary(550)
    .subscribeOn(Schedulers.newThread())
    .observeOn(AndroidSchedulers.mainThread())
    .subscribe(/* an Observer */);

See test cases in src/test/ for more examples.

Related projects

tmdb-java - without RxAndroid support

License

Copyright 2015 Miguel Teixeira

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.

About

A Java wrapper around themoviedb.org API v3 using retrofit with RxAndroid support. It is still incomplete, pull requests against dev welcome.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Java 99.8%
  • PowerShell 0.2%