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?
Etkö löydä elokuvaa tai TV-ohjelmaa? Kirjaudu sisään lisätäksesi se.
Haluatko pisteyttää vai lisätä tämän nimikkeen listaan?
Ei rekisteröitynyt jäsen?
Vastaus käyttäjältä Travis Bell
13 marraskuu 2018 klo 11:45AM
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.
Vastaus käyttäjältä tmdb49396329
28 joulukuu 2018 klo 3:42AM
@darkcain I'm having the same problem. Did you figure out how to solve this?
Vastaus käyttäjältä darkcain
30 joulukuu 2018 klo 6:27PM
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.