When I use:
HttpResponse<String> response = Unirest.get("blah")
.body("{}")
.asString();
it alerts me that ".body()" has protected access (I'm using java). How do I find a way around this?
Kan du inte hitta en film eller tv-serie? Logga in för att skapa den.
Vill du betygsätta denna artikel eller lägga till den i en lista?
Inte medlem?
Svar från Travis Bell
den 13 november 2018 vid 11:45 AM
Hi @darkcain,
I am not familiar with Java so can't be any help. For language specific issues like this I usually recommend heading over to Stack Overflow. Unless someone with Java experience happens to pass over this thread you probably won't get much help here.
Cheers.
Svar från tmdb49396329
den 28 december 2018 vid 3:42 AM
@darkcain I'm having the same problem. Did you figure out how to solve this?
Svar från darkcain
den 30 december 2018 vid 6:27 PM
I solved this by not using this particular method. I instead reverted back to using something like Volley. Works well and simple to implement. This is for Android.