Browse our Products

If so you can download any of the below versions for testing. The product will function as normal except for an evaluation limitation. At the time of purchase we provide a license file via email that will allow the product to work in its full capacity. If you would also like an evaluation license to test without any restrictions for 30 days, please follow the directions provided here.

Product Docs Swagger UI Examples Blog Support Dashboard


Requirements

Building the API client library requires:

  1. Java 1.8+
  2. Maven (3.8.3+)/Gradle (7.2+)

Installation

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project’s POM:

<dependency>
  <groupId>com.groupdocs</groupId>
  <artifactId>GroupDocs-translation-cloud-Android</artifactId>
  <version>24.5</version>
  <scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project’s build file:

  repositories {
    mavenCentral()     // Needed if the 'GroupDocs-translation-cloud' jar has been published to maven central.
    mavenLocal()       // Needed if the 'GroupDocs-translation-cloud' jar has been published to the local maven repo.
  }

  dependencies {
     implementation "com.groupdocs:GroupDocs-translation-cloud-Android:24.5"
  }

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/GroupDocs-translation-cloud-Android-24.5.jar
  • target/lib/*.jar

Getting Started

Please follow the installation instruction and execute the following Java code:


// Import classes:
import com.groupdocs.ApiClient;
import com.groupdocs.ApiException;
import com.groupdocs.Configuration;
import com.groupdocs.auth.*;
import com.groupdocs.models.*;
import org.openapitools.client.api.TranslationApi;

public class Example {
    public static void main(String[] args) {
        String basePath = "https://api.groupdocs.cloud/v2.0/translation";
        String cliendId = "YOUR_CLIENT_ID";
        String clientSecret = "YOUR_CLIENT_SECRET";

        ApiClient defaultClient = new ApiClient(basePath, cliendId, clientSecret, null);
        TranslationApi apiInstance = new TranslationApi(defaultClient);

        TextRequest request = new TextRequest();
        request.setSourceLanguage("en");
        request.addTargetLanguagesItem("de");
        request.addTextsItem("Text to translate");

        try {
            CloudTextResponse cloudTextResponse = apiInstance.textRequestIdGet(apiInstance.textPost(request).getId());
            System.out.println(cloudTextResponse);
        } catch (ApiException e) {
            System.err.println("Exception when calling TranslationApi#autoPost");
            System.err.println("Status code: " + e.getCode());
            System.err.println("Reason: " + e.getResponseBody());
            System.err.println("Response headers: " + e.getResponseHeaders());
            e.printStackTrace();
        }
  }
}

Documentation for API Endpoints

All URIs are relative to https://api.groupdocs.cloud/v2.0/translation

ClassMethodHTTP requestDescription
TranslationApiautoPostPOST /autoTranslate any supported file
TranslationApicsvPostPOST /csvTranslate CSV and TSV files
TranslationApidocumentPostPOST /documentTranslate Microsoft Word documents, rtf, txt, odt
TranslationApidocumentRequestIdGetGET /document/{requestId}Return document translation status. Also return URLs for downloading of translated document if translation was successful
TranslationApidocumentTrialPostPOST /document/trialTrial translate Microsoft Word documents, rtf, txt, odt without conversation. Translate only first page or 1000 symbols.
TranslationApihcGetGET /hcHealth check for all services.
TranslationApihtmlPostPOST /htmlTranslate HTML files
TranslationApihugoGetGET /hugoGet hugo syntax structure from markdown file
TranslationApihugoPostPOST /hugoRun hugo syntax structure analyzing from markdown file
TranslationApiimageToFilePostPOST /image-to-fileTranslate image or scanned pdf and return file
TranslationApiimageToTextPostPOST /image-to-textTranslate text on image or scanned pdf
TranslationApilanguagesGetGET /languagesReturn list of available language pairs
TranslationApimarkdownPostPOST /markdownTranslate Markdown files
TranslationApipdfPostPOST /pdfTranslate pdf files
TranslationApipdfTrialPostPOST /pdf/trialTrial pdf translation. Translate only first page without conversion to another format.
TranslationApipresentationPostPOST /presentationTranslate Microsoft PowerPoint presentations, odp
TranslationApiresxPostPOST /resxTranslate RESX files
TranslationApispreadsheetPostPOST /spreadsheetTranslate Microsoft Excel workbooks, ods
TranslationApitextPostPOST /textTranslate text
TranslationApitextRequestIdGetGET /text/{requestId}Return text translation status. Also return translated text if translation was successful
TranslationApitextTrialPostPOST /text/trialTrial translate text. Translate only 1000 symbols.

Documentation for Models

CloudFileResponse, CloudHugoResponse, CloudTextResponse, CsvFileRequest, FileRequest, HealthCheckStatus, HtmlFileRequest, HttpStatusCode, HugoRequest, ImageToFileRequest, ImageToTextRequest, LanguagePairData, MarkdownFileRequest, PdfFileRequest, PresentationFileRequest, ResxFileRequest, SpreadsheetFileRequest, StatusResponse, StringStringTuple, TextDocumentFileRequest, TextRequest, UrlFileInfo, WorksheetData

GroupDocs.Translation Cloud SKDs

GitHub

GitHub GitHub GitHub GitHub

Package Manager

NuGet Maven PyPI Android


Product Docs Swagger UI Examples Blog Support Dashboard


groupdocs-net-rest-api nuget sdk net-sdk cloud rest rest-api cloud-api mit jwt oauth groupdocs-total-cloud groupdocs-translation-cloud 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