Sprint is a RESTful android java library
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.ostamustafa:sprint:1.0.3'
}
Sprint.instance()
.request("http://some.url")
.execute(new SprintCallback() {
@Override
public void onResponse(Response response) {
}
@Override
public void onException(Exception e) {
}
});
Sprint.instance(Method.POST)
.request("http://some.url", args)
.execute(new SprintCallback() {
@Override
public void onResponse(Response response) {
}
@Override
public void onException(Exception e) {
}
});
args can be HashMap<String, String>
or JSONObject
or String
more information will be added later on