These are chat archives for Mashape/unirest-java

30th
Oct 2015
James Salt
@saltpy
Oct 30 2015 14:21
@shashiranjan84 thanks for the help here. I'm having to use asString since the error that comes back in the body is not valid json. My code is below:
HttpResponse<String> ab = Unirest
.post("http://"; + logglyAccount + ".loggly.com/apiv2/search";)
.basicAuth(logglyUsername, logglyPassword)
.queryString("q", textContent)
.queryString("tags", guidTag)
.queryString("from", "-" + timeFrameSeconds + "s")
.queryString("until", "now")
.queryString("DEBUG", "True")
.asString();
shashi ranjan
@shashiranjan84
Oct 30 2015 15:51
Is it working?