<dependency>
<groupId>com.groupdocs</groupId>
<artifactId>groupdocs-translation-cloud</artifactId>
<version>25.7</version>
</dependency>compile(group: 'com.groupdocs', name: 'groupdocs-translation-cloud', version: '25.7')<dependency org="com.groupdocs" name="groupdocs-translation-cloud" rev="25.7">
<artifact name="groupdocs-translation-cloud" ext="jar"/>
</dependency>libraryDependencies += "com.groupdocs" % "groupdocs-translation-cloud" % "25.7"API REST Java Cloud de traduction de documents
Page du produit | Documentation | Démonstrations | Swagger UI | Exemples de code | Blog | Support gratuit | Essai gratuit
GroupDocs.Translation Cloud SDK for Java vous aide à créer des applications Java de traduction de documents dans le cloud qui fonctionnent sans installer de logiciel tiers. Il s’agit d’un wrapper autour de GroupDocs.Translation Cloud REST APIs.
Conditions
La création de la bibliothèque cliente de l’API nécessite :
- Java 1.7+
- Maven
Conditions préalables
Pour utiliser GroupDocs.Translation Cloud SDK pour Java, vous devez créer un compte avec GroupDocs Cloud et rechercher/créer l’ID client et le secret client sur Cloud Dashboard. Un quota gratuit est disponible. Pour plus de détails, consultez GroupDocs Cloud Pricing.
Installez GroupDocs.Translation-Cloud depuis Maven
Ajoutez le référentiel GroupDocs Cloud à votre application pom.xml
<repository>
<id>repository.groupdocs.cloud</id>
<name>repository.groupdocs.cloud</name>
<url>https://releases.groupdocs.cloud/java/repo/</url>
</repository>
Installer depuis la source
Pour installer la bibliothèque cliente de l’API dans votre référentiel Maven local, exécutez simplement :
mvn clean install
Pour le déployer sur un référentiel Maven distant à la place, configurez les paramètres du référentiel et exécutez :
mvn clean deploy
Reportez-vous au guide OSSRH pour plus d’informations.
Utilisateurs Maven
Ajoutez cette dépendance au POM de votre projet :
<dependency>
<groupId>com.groupdocs</groupId>
<artifactId>groupdocs-translation-cloud</artifactId>
<version>25.7</version>
</dependency>
Les autres
Générez d’abord le JAR en exécutant :
mvn clean package
Ensuite, installez manuellement les fichiers JAR suivants :
target/groupdocs-translation-cloud-25.7.jartarget/lib/*.jar
Commencer
Veuillez suivre les instructions de démarrage rapide.
Traduire du texte brut via Java Cloud SDK
import com.GroupDocs.translate.api.*;
import com.GroupDocs.translate.Configuration;
import static java.lang.System.out;
public static void main(String[] args) throws Exception {
// add your client id here
Configuration.setClient_id("XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX");
// add your client secret here
Configuration.setClient_secret("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX");
// add language pair here, see https://wiki.groupdocs.cloud/translationcloud/developer-guide/supported-languages/
pair = ""
// add text to translate here
text = ""
TextInfo textInfo = new TextInfo(pair, text);
String userRequest = textInfoList.toString();
TranslationTextRequest translationTextRequest = new TranslationTextRequest(userRequest);
TranslationTextResponse translateTextResponse = TranslationApi.TranslateText(translationTextRequest);
out.print(translateTextResponse.translation);
}
Autorisation et authentification
schéma d’authentification défini pour l’API est le suivant :
JWT
- Type : OAuth 2.0
- Flux : candidature
- URL d’autorisation :https://api.groupdocs.cloud/connect/token
- Token Lifetime : 1 jour (par défaut)
Page du produit | Documentation | Démonstrations | Swagger UI | Exemples de code | Blog | Support gratuit | Essai gratuit
| Version | Release Date |
|---|---|
| 25.7 | 31 juillet 2025 |
| 25.2 | 27 février 2025 |
| 24.12 | 24 décembre 2024 |
| 24.11 | 30 novembre 2024 |
| 24.5 | 31 mai 2024 |
| 24.3 | 22 mars 2024 |
| 24.1 | 31 janvier 2024 |
| 23.10 | 11 décembre 2023 |
| 23.1 | 26 janvier 2023 |
| 22.8 | 1 septembre 2022 |
| 22.5 | 24 mai 2022 |
| 22.4 | 27 avril 2022 |
| 22.2 | 1 mars 2022 |
| 20.8.0 | 25 janvier 2022 |
| 20.12.0 | 22 décembre 2020 |
| 20.10.0 | 4 novembre 2020 |
GroupDocs Java REST API Maven SDK Java SDK Cloud REST REST API Cloud API MIT JWT oauth GroupDocs.Total Cloud GroupDocs.Translation Cloud JAR document automation document automation cloud document DOC DOCX DOCM RTF ODT XLS XLSX XLSM CSV TSV ODS PPT PPTX PPTM ODP PDF MD Markdown translate translator multi lingual language language pair translation pair JSON paragraph header footer footnote endnote image caption table pivot cells charts master slide notes comments frames convert conversion converter French English German Deutsch Chinese Spanish Italian Russian Arabic Portuguese Polish Ukrainian Vietnamese Indonesian Hindi Greek Dutch Hungarian Swedish Turkish Japanese Korean Czech Finnish Irish Slovak Farsi Persian Hebrew Azerbaijani Thai Romanian Malay Bulgarian English to French French to English English to German German to English English to Deutsch Deutsch to English English to Chinese Chinese to English English to Spanish Spanish to English English to Italian Italian to English English to Russian Russian to English English to Arabic Arabic to English English to Portuguese Portuguese to English English to Polish Polish to English English to Ukrainian Ukrainian to English English to Vietnamese Vietnamese to English English to Indonesian Indonesian to English English to Hindi Hindi to English English to Greek Greek to English English to Dutch Dutch to English English to Hungarian Hungarian to English English to Swedish Swedish to English English to Turkish Turkish to English English to Japanese Japanese to English English to Korean Korean to English English to Czech Czech to English English to Finnish Finnish to English English to Irish Irish to English English to Slovak Slovak to English English to Farsi Farsi to English English to Persian Persian to English English to Hebrew Hebrew to English English to Azerbaijani Azerbaijani to English English to Thai Thai to English English to Romanian Romanian to English English to Malay Malay to English English to Bulgarian Bulgarian to English French to German German to French French to Deutsch Deutsch to French French to Italian Italian to French French to Arabic Arabic to French

