This is my post
:
@POST("/path")
@FormUrlEncoded
void postIt(@Field("id") String id , Callback<Response> response);
and this is the Callback
:
private Callback<Response> responseCallBack = new Callback<Response>() {
@Override
public void success(Response response, Response response2) {
// get the id
}
@Override
public void failure(RetrofitError error) {
// do some thing
}
};
Question:
in the callback
i want to receive the id which posted in @POST
, how should i do that?
and i can't change the server API