File tree Expand file tree Collapse file tree
deepl-java/src/main/java/com/deepl/api Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77## Unreleased
88### Fixed
99* Changed document translation to poll the server every 5 seconds. This should greatly reduce observed document translation processing time.
10+ * Fix getUsage request to be a HTTP GET request, not POST.
1011
1112
1213## [ 1.2.0] - 2023-03-22
Original file line number Diff line number Diff line change @@ -247,7 +247,7 @@ public List<TextResult> translateText(
247247 * @throws DeepLException If any error occurs while communicating with the DeepL API.
248248 */
249249 public Usage getUsage () throws DeepLException , InterruptedException {
250- HttpResponse response = httpClientWrapper .sendRequestWithBackoff ("/v2/usage" );
250+ HttpResponse response = httpClientWrapper .sendGetRequestWithBackoff ("/v2/usage" );
251251 checkResponse (response , false , false );
252252 return jsonParser .parseUsage (response .getBody ());
253253 }
You can’t perform that action at this time.
0 commit comments