Skip to content

Repository files navigation

lilt-java

Lilt REST API

  • API version: v3.0.1
    • Build date: 2025-02-20T18:18:58.249Z[GMT]

Lilt REST API Support: https://lilt.atlassian.net/servicedesk/customer/portals
The Lilt REST API enables programmatic access to the full-range of Lilt backend services including:

  • Training of and translating with interactive, adaptive machine translation
  • Large-scale translation memory
  • The Lexicon (a large-scale termbase)
  • Programmatic control of the Lilt CAT environment
  • Translation memory synchronization

Requests and responses are in JSON format. The REST API only responds to HTTPS / SSL requests. The base url for this REST API is https://api.lilt.com/.

Authentication

Requests are authenticated via REST API key, which requires the Business plan.

Requests are authenticated using HTTP Basic Auth. Add your REST API key as both the username and password.

For development, you may also pass the REST API key via the key query parameter. This is less secure than HTTP Basic Auth, and is not recommended for production use.

Quotas

Our services have a general quota of 4000 requests per minute. Should you hit the maximum requests per minute, you will need to wait 60 seconds before you can send another request.

Automatically generated by the OpenAPI Generator

Requirements

Building the API client library requires:

  1. Java 1.7+
  2. Maven/Gradle

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.lilt.client</groupId>
<artifactId>lilt-java</artifactId>
<version>v3.0.1</version>
<scope>compile</scope>
</dependency>

Gradle users

Add this dependency to your project's build file:

compile "com.lilt.client:lilt-java:v3.0.1"

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/lilt-java-v3.0.1.jar
  • target/lib/*.jar

Getting Started

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

// Import classes:importcom.lilt.client.ApiClient;
importcom.lilt.client.ApiException;
importcom.lilt.client.Configuration;
importcom.lilt.client.auth.*;
importcom.lilt.client.models.*;
importcom.lilt.client.api.CreateApi;
publicclassExample {
publicstaticvoidmain(String[] args) {
ApiClientdefaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.lilt.com");
// Configure API key authorization: ApiKeyAuthApiKeyAuthApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth");
ApiKeyAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)//ApiKeyAuth.setApiKeyPrefix("Token");// Configure HTTP basic authorization: BasicAuthHttpBasicAuthBasicAuth = (HttpBasicAuth) defaultClient.getAuthentication("BasicAuth");
BasicAuth.setUsername("YOUR USERNAME");
BasicAuth.setPassword("YOUR PASSWORD");
CreateApiapiInstance = newCreateApi(defaultClient);
IntegercontentId = 56; // Integer | The content ID.try {
InlineResponse200result = apiInstance.deleteLiltCreateContent(contentId);
System.out.println(result);
} catch (ApiExceptione) {
System.err.println("Exception when calling CreateApi#deleteLiltCreateContent");
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.lilt.com

ClassMethodHTTP requestDescription
CreateApideleteLiltCreateContentDELETE /v2/create/{contentId}Delete Lilt Create content
CreateApigenerateLiltCreateContentPOST /v2/createGenerate new Lilt Create content
CreateApigetLiltCreateByIdGET /v2/create/{contentId}Get Lilt Create content by ID.
CreateApigetLiltCreateContentGET /v2/createGet Lilt Create content
CreateApigetLiltCreatePreferencesGET /v2/create/preferencesGet Lilt Create preferences
CreateApiregenerateLiltCreateContentGET /v2/create/{contentId}/createRegenerate Lilt Create content
CreateApisignLiltCreateTermsPOST /v2/create/terms-and-conditionsSign the Lilt Create terms and conditions
CreateApiupdateLiltCreateContentPUT /v2/create/{contentId}Update Lilt Create content
CreateApiupdateLiltCreatePreferencesPUT /v2/create/preferencesUpdate Lilt Create preferences
DocumentsApidownloadDocumentGET /v2/documents/filesDownload a Document
DocumentsApiuploadDocumentPOST /v2/documents/filesUpload a File
FilesApiaddLabelPOST /v2/files/labelsAdd Label to File
FilesApideleteFileDELETE /v2/filesDelete a File
FilesApidownloadGET /v2/files/downloadDownload file
FilesApigetFilesGET /v2/filesRetrieve a File
FilesApiremoveLabelDELETE /v2/files/labelsRemove Label from File
FilesApiuploadFilePOST /v2/filesUpload a File
JobsApiarchiveJobPOST /v2/jobs/{jobId}/archiveArchive a Job
JobsApicreateJobPOST /v2/jobsCreate a Job
JobsApideleteJobDELETE /v2/jobs/{jobId}Delete a Job
JobsApideliverJobPOST /v2/jobs/{jobId}/deliverDeliver a Job
JobsApidownloadJobGET /v2/jobs/{jobId}/downloadDownload a Job
JobsApiexportJobGET /v2/jobs/{jobId}/exportExport a Job
JobsApigetJobGET /v2/jobs/{jobId}Retrieve a Job
JobsApigetJobLeverageStatsPOST /v2/jobs/{jobId}/statsRetrieve Job Leverage Stats
JobsApireactivateJobPOST /v2/jobs/{jobId}/reactivateReactivate a Job
JobsApiretrieveAllJobsGET /v2/jobsRetrieve all Jobs
JobsApiunarchiveJobPOST /v2/jobs/{jobId}/unarchiveUnarchive a Job
JobsApiupdateJobPUT /v2/jobs/{jobId}Update a Job
LanguagesApigetLanguagesGET /v2/languagesRetrieve supported languages
MemoriesApicreateMemoryPOST /v2/memoriesCreate a Memory
MemoriesApideleteMemoryDELETE /v2/memoriesDelete a Memory
MemoriesApideleteSegmentFromMemoryDELETE /v2/memories/segmentDelete a segment from a memory.
MemoriesApidownloadTermbaseGET /v2/memories/termbase/downloadTermbase download for a Memory
MemoriesApiexportTermbasePOST /v2/memories/termbase/exportTermbase export for a Memory
MemoriesApigetMemoryGET /v2/memoriesRetrieve a Memory
MemoriesApiimportMemoryFilePOST /v2/memories/importFile import for a Memory
MemoriesApiqueryMemoryGET /v2/memories/queryQuery a Memory
MemoriesApiupdateMemoryPUT /v2/memoriesUpdate the name of a Memory
ProjectsApicreateProjectPOST /v2/projectsCreate a Project
ProjectsApideleteProjectDELETE /v2/projectsDelete a Project
ProjectsApigetProjectsGET /v2/projectsRetrieve a Project
TranslateApibatchTranslateFilePOST /v2/translate/fileTranslate a File
TranslateApidownloadFileGET /v2/translate/filesDownload translated file
TranslateApimonitorFileTranslationGET /v2/translate/fileMonitor file translation
TranslateApitranslateSegmentPostPOST /v2/translateTranslate a segment
WebhookConfigurationApiservicesConfigurationApiWebhooksDeleteDELETE /v3/connectors/configuration/webhooks/{id}Delete a specific Webhook Configuration by ID.
WebhookConfigurationApiwebhooksCreatePOST /v3/connectors/configuration/webhooksCreates a new Webhook Configuration
WebhookConfigurationApiwebhooksGetGET /v3/connectors/configuration/webhooks/{id}Retrieve a specific Webhook Configuration by ID.
WebhookConfigurationApiwebhooksGetManyGET /v3/connectors/configuration/webhooksRetrieve a list of Webhook Configurations.
WebhookConfigurationApiwebhooksUpdatePUT /v3/connectors/configuration/webhooks/{id}Update a specific Webhook Configuration by ID.
WorkflowsApigetWorkflowTemplatesGET /v2/workflows/templatesRetrieve workflow templates

Documentation for Models

Documentation for Authorization

Authentication schemes defined for the API:

ApiKeyAuth

  • Type: API key
  • API key parameter name: key
  • Location: URL query string

BasicAuth

  • Type: HTTP basic authentication

Recommendation

It's recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Author

About

Lilt API binding for java

Resources

Stars

0 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages