Skip to content

Commit

Permalink
enable callback for text document translation
Browse files Browse the repository at this point in the history
  • Loading branch information
GordeaS authored and GordeaS committed Jun 17, 2024
1 parent cc59912 commit f6409a3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,8 @@ private String createTranslationBodyWithDocument(String text, String sourceLang,
String targetLang, String externalReference) throws JSONException {
String base64EncodedText = Base64.encodeBase64String(text.getBytes(StandardCharsets.UTF_8));
JSONObject jsonBody = new JSONObject().put("priority", 0)
// .put("requesterCallback", getTranslatioCallbackUrl())
// .put("errorCallback", getTranslationErrorCallbackUrl())
.put("requesterCallback", getTranslatioCallbackUrl())
.put("errorCallback", getTranslationErrorCallbackUrl())
.put("externalReference", externalReference)
.put("callerInformation",
new JSONObject().put("application", credentialUsername).put("username",
Expand Down

0 comments on commit f6409a3

Please sign in to comment.