An Movieglu API wrapper.
repositories {
jcenter()
maven { url 'https://jitpack.io' }
}
dependencies {
compile 'com.github.stevesoltys:movieglu:0.1.0'
}
Create a Movieglu
instance with your credentials, and run an API query.
Here's an example:
Movieglu movieglu = Movieglu.builder()
.apiEndpoint("https://api-gate2.movieglu.com/")
.territory("US")
.authorization("Basic Tk9ORV8zMjpIZFhQNmZYMHVyTYI=")
.apiKey("bnaDP2aFJm2IVwmKXx3iC8zUvYIB9qWk57felpFF")
.username("NONE_32")
.deviceDateTime(Instant.now().toString())
.build();
NowShowingResponse nowShowingResponse = movieglu.getNowShowing(10);
NowShowingFilm = nowShowingResponse.getFilms().get(0);
// ...
This library is available as open source under the terms of the MIT License.