API bindings for the Lilt REST API.
All URIs are relative to https://api.lilt.com
Method | HTTP request | Description |
---|---|---|
create_project | POST /v2/projects | Create a Project |
delete_project | DELETE /v2/projects | Delete a Project |
get_projects | GET /v2/projects | Retrieve a Project |
Project create_project(body)
Create a Project
Create a Project. A Project is a collection of Documents. A Project is associated with exactly one Memory. Projects appear in the dashboard of the web app.
configuration = lilt.Configuration( host = “https://api.lilt.com” )
configuration = lilt.Configuration( host = “https://api.lilt.com”, api_key = { ‘key’: ‘YOUR_API_KEY’ } )
configuration = lilt.Configuration( username = ‘YOUR_USERNAME’, password = ‘YOUR_PASSWORD’ )
with lilt.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = lilt.ProjectsApi(api_client) body = lilt.ProjectCreateParameters() # ProjectCreateParameters |
try:
# Create a Project
api_response = api_instance.create_project(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->create_project: %s\n" % e) ```
configuration = lilt.Configuration( host = “https://api.lilt.com” )
configuration = lilt.Configuration( host = “https://api.lilt.com”, api_key = { ‘key’: ‘YOUR_API_KEY’ } )
configuration = lilt.Configuration( username = ‘YOUR_USERNAME’, password = ‘YOUR_PASSWORD’ )
with lilt.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = lilt.ProjectsApi(api_client) body = lilt.ProjectCreateParameters() # ProjectCreateParameters |
try:
# Create a Project
api_response = api_instance.create_project(body)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->create_project: %s\n" % e) ```
Name | Type | Description | Notes |
---|---|---|---|
body | ProjectCreateParameters |
| Status code | Description | Response headers | |————-|————-|——————| 200 | A Project object. | - | 401 | Unauthorized | - | 0 | Unexpected error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ProjectDeleteResponse delete_project(id=id)
Delete a Project
Delete a Project.
configuration = lilt.Configuration( host = “https://api.lilt.com” )
configuration = lilt.Configuration( host = “https://api.lilt.com”, api_key = { ‘key’: ‘YOUR_API_KEY’ } )
configuration = lilt.Configuration( username = ‘YOUR_USERNAME’, password = ‘YOUR_PASSWORD’ )
with lilt.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = lilt.ProjectsApi(api_client) id = 56 # int | A unique Project identifier. (optional)
try:
# Delete a Project
api_response = api_instance.delete_project(id=id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->delete_project: %s\n" % e) ```
configuration = lilt.Configuration( host = “https://api.lilt.com” )
configuration = lilt.Configuration( host = “https://api.lilt.com”, api_key = { ‘key’: ‘YOUR_API_KEY’ } )
configuration = lilt.Configuration( username = ‘YOUR_USERNAME’, password = ‘YOUR_PASSWORD’ )
with lilt.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = lilt.ProjectsApi(api_client) id = 56 # int | A unique Project identifier. (optional)
try:
# Delete a Project
api_response = api_instance.delete_project(id=id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->delete_project: %s\n" % e) ```
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique Project identifier. | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| 200 | A status object. | - | 401 | Unauthorized | - | 0 | Unexpected error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[Project] get_projects(id=id, srclang=srclang, trglang=trglang, from_time=from_time, to_time=to_time, state=state, archived=archived, connector_id=connector_id)
Retrieve a Project
Retrieves one or more projects, including the documents associated with each project. Retrieving a project is the most efficient way to retrieve a single project, multiple projects or a list of all available projects. To retrieve a specific project, specify the id
request parameter or you can retrieve multiple projects by adding comma (,) between ids eg. ?id=1234,5678
. To retrieve all projects, omit the id
request parameter. To limit the retrieved projects to those with a particular source language or target language, specify the corresponding ISO 639-1 language codes in the srclang
and trglang
request parameters, respectively.
configuration = lilt.Configuration( host = “https://api.lilt.com” )
configuration = lilt.Configuration( host = “https://api.lilt.com”, api_key = { ‘key’: ‘YOUR_API_KEY’ } )
configuration = lilt.Configuration( username = ‘YOUR_USERNAME’, password = ‘YOUR_PASSWORD’ )
with lilt.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lilt.ProjectsApi(api_client)
id = 56 # int | A unique Project identifier. It can be a single id or multiple ids separated by a comma (optional)
srclang = ‘srclang_example’ # str | An ISO 639-1 language code. (optional)
trglang = ‘trglang_example’ # str | An ISO 639-1 language code. (optional)
from_time = 56 # int | Unix time stamp (epoch, in seconds) of Projects with created_at
greater than or equal to the value. (optional)
to_time = 56 # int | Unix time stamp (epoch, in seconds) of Projects with created_at
less than the value. (optional)
state = ‘state_example’ # str | A project state (backlog, inProgress, inReview, inQA, done). (optional)
archived = True # bool | A flag that toggles whether to include archived projects in the response (the default is true
). (optional)
connector_id = 56 # int | A unique Connector identifier. (optional)
try:
# Retrieve a Project
api_response = api_instance.get_projects(id=id, srclang=srclang, trglang=trglang, from_time=from_time, to_time=to_time, state=state, archived=archived, connector_id=connector_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->get_projects: %s\n" % e) ```
configuration = lilt.Configuration( host = “https://api.lilt.com” )
configuration = lilt.Configuration( host = “https://api.lilt.com”, api_key = { ‘key’: ‘YOUR_API_KEY’ } )
configuration = lilt.Configuration( username = ‘YOUR_USERNAME’, password = ‘YOUR_PASSWORD’ )
with lilt.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = lilt.ProjectsApi(api_client)
id = 56 # int | A unique Project identifier. It can be a single id or multiple ids separated by a comma (optional)
srclang = ‘srclang_example’ # str | An ISO 639-1 language code. (optional)
trglang = ‘trglang_example’ # str | An ISO 639-1 language code. (optional)
from_time = 56 # int | Unix time stamp (epoch, in seconds) of Projects with created_at
greater than or equal to the value. (optional)
to_time = 56 # int | Unix time stamp (epoch, in seconds) of Projects with created_at
less than the value. (optional)
state = ‘state_example’ # str | A project state (backlog, inProgress, inReview, inQA, done). (optional)
archived = True # bool | A flag that toggles whether to include archived projects in the response (the default is true
). (optional)
connector_id = 56 # int | A unique Connector identifier. (optional)
try:
# Retrieve a Project
api_response = api_instance.get_projects(id=id, srclang=srclang, trglang=trglang, from_time=from_time, to_time=to_time, state=state, archived=archived, connector_id=connector_id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ProjectsApi->get_projects: %s\n" % e) ```
Name | Type | Description | Notes |
---|---|---|---|
id | int | A unique Project identifier. It can be a single id or multiple ids separated by a comma | [optional] |
srclang | str | An ISO 639-1 language code. | [optional] |
trglang | str | An ISO 639-1 language code. | [optional] |
from_time | int | Unix time stamp (epoch, in seconds) of Projects with `created_at` greater than or equal to the value. | [optional] |
to_time | int | Unix time stamp (epoch, in seconds) of Projects with `created_at` less than the value. | [optional] |
state | str | A project state (backlog, inProgress, inReview, inQA, done). | [optional] |
archived | bool | A flag that toggles whether to include archived projects in the response (the default is `true`). | [optional] |
connector_id | int | A unique Connector identifier. | [optional] |
| Status code | Description | Response headers | |————-|————-|——————| 200 | A list of Project objects. | - | 401 | Unauthorized | - | 0 | Unexpected error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]