Created
December 17, 2018 21:20
-
-
Save mchmielarz/b22f708962bdab300a4be971e340e75a to your computer and use it in GitHub Desktop.
Call Airly service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Try<String> callAirly(URI airlyUri) { | |
HttpRequest req = requestBuilder.uri(airlyUri).build(); | |
return Try | |
.of(() -> httpClient.send(req, bodyHandler)) | |
.map(HttpResponse::body); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment