tmdb-sdk
A wrapper for the TMBD API.
Install
Step 1
Add this to your root build.gradle
file:
allprojects {
repositories {
maven { url 'https://jitpack.io' }
}
}
Step 2
Add the dependency
dependencies {
compile 'com.github.vpaliyX:tmdb-sdk:-SNAPSHOT'
}
How to use?
val service=TMDB(Config.CLIENT_ID).moviesService
service.getPopular()
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe()
Or you can add query parameters:
val service=TMDB(Config.CLIENT_ID).moviesService
service.getPopular(){
query("1","arg")
query("2","arg")
query("3","arg")
}
.subscribeOn(Schedulers.io())
.observeOn(AndroidSchedulers.mainThread())
.subscribe()