Last active
August 8, 2020 09:46
-
-
Save manoj-mili/df5f2e13d68d8dfa319cca119600bec5 to your computer and use it in GitHub Desktop.
Get Request With Path Parameters Using Fast-Android-Networking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static final String URLEX = "https://jsonplaceholder.typicode.com/users/{user_id}/albums"; | |
AndroidNetworking.get(URLEx).addPathParameter("user_id","1").build().getAsJSONArray(new JSONArrayRequestListener() { | |
@Override | |
public void onResponse(JSONArray response) { | |
// Once data is received it will available for processing | |
} | |
@Override | |
public void onError(ANError anError) { | |
// In case of error it can handled through this channel | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment