Skip to content

Latest commit

 

History

History
59 lines (38 loc) · 1.44 KB

LanguagesApi.md

File metadata and controls

59 lines (38 loc) · 1.44 KB

LiltNode.LanguagesApi

All URIs are relative to https://api.lilt.com

Method HTTP request Description
getLanguages GET /v2/languages Retrieve supported languages

getLanguages

LanguagesResponse getLanguages()

Retrieve supported languages

Get a list of supported languages.

Example

import LiltNode from 'lilt-node';
let defaultClient = LiltNode.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';
// Configure HTTP basic authorization: BasicAuth
let BasicAuth = defaultClient.authentications['BasicAuth'];
BasicAuth.username = 'YOUR USERNAME';
BasicAuth.password = 'YOUR PASSWORD';

let apiInstance = new LiltNode.LanguagesApi();
apiInstance.getLanguages().then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

LanguagesResponse

Authorization

ApiKeyAuth, BasicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json