Skip to content

Instantly share code, notes, and snippets.

@manoj-mili
Last active August 8, 2020 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save manoj-mili/df5f2e13d68d8dfa319cca119600bec5 to your computer and use it in GitHub Desktop.
Save manoj-mili/df5f2e13d68d8dfa319cca119600bec5 to your computer and use it in GitHub Desktop.
Get Request With Path Parameters Using Fast-Android-Networking
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