API bindings for the Lilt REST API.
All URIs are relative to https://api.lilt.com
Method | HTTP request | Description |
---|---|---|
get_languages | GET /v2/languages | Retrieve supported languages |
LanguagesResponse get_languages()
Retrieve supported languages
Get a list of supported languages.
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.LanguagesApi(api_client)
try:
# Retrieve supported languages
api_response = api_instance.get_languages()
pprint(api_response)
except ApiException as e:
print("Exception when calling LanguagesApi->get_languages: %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.LanguagesApi(api_client)
try:
# Retrieve supported languages
api_response = api_instance.get_languages()
pprint(api_response)
except ApiException as e:
print("Exception when calling LanguagesApi->get_languages: %s\n" % e) ```
This endpoint does not need any parameter.
| Status code | Description | Response headers | |————-|————-|——————| 200 | An object listing supported languages and their corresponding locales. | - | 401 | Unauthorized | - | 0 | Unexpected error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]