From f6409a3dfdca0586c5c53840d1642d00f1d59883 Mon Sep 17 00:00:00 2001 From: GordeaS Date: Mon, 17 Jun 2024 16:07:32 +0200 Subject: [PATCH] enable callback for text document translation --- .../service/etranslation/ETranslationTranslationService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/translation-service-etranslation/src/main/java/eu/europeana/api/translation/service/etranslation/ETranslationTranslationService.java b/translation-service-etranslation/src/main/java/eu/europeana/api/translation/service/etranslation/ETranslationTranslationService.java index 371f6b6..8a3af5c 100644 --- a/translation-service-etranslation/src/main/java/eu/europeana/api/translation/service/etranslation/ETranslationTranslationService.java +++ b/translation-service-etranslation/src/main/java/eu/europeana/api/translation/service/etranslation/ETranslationTranslationService.java @@ -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",