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?
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Travis Bell
le 13 novembre 2018 à 11h45
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.
Réponse de tmdb49396329
le 28 décembre 2018 à 03h42
@darkcain I'm having the same problem. Did you figure out how to solve this?
Réponse de darkcain
le 30 décembre 2018 à 18h27
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.