Unofficial Material Up API Wrapper for Android.
MaterialUp.getPosts(context, page, MaterialUp.SORT.POPULAR, new MaterialUpCallback() {
@Override
public void onSuccess(List <Post> posts, Response response) {
// do stuff with posts!
}
@Override
public void onFailure(Request request, IOException e) {
// show a toast!
}
});
MaterialUp.getPosts(context, page, MaterialUp.SORT.LATEST, new MaterialUpCallback() {
@Override
public void onSuccess(List <Post> posts, Response response) {
// do stuff with posts!
}
@Override
public void onFailure(Request request, IOException e) {
// show a toast!
}
});
Gradle:
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
// ... other dependencies here
compile'com.github.Alelak:materialup:1.1.0'
}