materialup

Additional

Language
Java
Version
1.1.3 (Jan 9, 2016)
Created
Nov 5, 2015
Updated
Sep 1, 2016 (Retired)
Owner
Alladin El Akhrass (Alelak)
Contributor
Alladin El Akhrass (Alelak)
1
Activity
Badge
Generate
Download
Source code
APK file

Advertisement

Material Up Api Wrapper

Unofficial Material Up API Wrapper for Android.

Usage

Get popular posts:

MaterialUp.getPosts(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!

 }
});

Get latest posts:

MaterialUp.getPosts(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!

 }
});

Download

Gradle:

repositories {
    maven { url "https://jitpack.io" }
}

dependencies {
    // ... other dependencies here
    compile'com.github.Alelak:materialup:1.1.3'
}