Connector API
Search…
Languages

Get all languages

Returns all languages supported by the API.

Request

[PlatformAddress]/api/connector/v1/languages/getAll
1
{
2
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
3
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
4
"Client": "Sample Client 1.0.0"
5
}
Copied!
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.

Response

1
{
2
"Languages": [
3
{
4
"Code": "zh-CN",
5
"EnglishName": "Chinese (Simplified)",
6
"FallbackLanguageCode": "en-US",
7
"LocalName": "中文"
8
},
9
{
10
"Code": "cs-CZ",
11
"EnglishName": "Czech",
12
"FallbackLanguageCode": "en-US",
13
"LocalName": "Čeština"
14
}
15
]
16
}
Copied!
Property
Type
Contract
Description
Languages
array of Language
required
The supported languages.

Language

Property
Type
Contract
Description
Code
string
required
Language-culture code of the language.
FallbackLanguageCode
string
optional
Language-culture code of the fallback language.
EnglishName
string
required
English name of the language.
LocalName
string
required
Local name of the language.

Get language texts

Returns translations of texts in the specified languages.

Request

[PlatformAddress]/api/connector/v1/languages/getTexts
1
{
2
"ClientToken": "E0D439EE522F44368DC78E1BFB03710C-D24FB11DBE31D4621C4817E028D9E1D",
3
"AccessToken": "C66EF7B239D24632943D115EDE9CB810-EA00F8FD8294692C940F6B5A8F9453D",
4
"Client": "Sample Client 1.0.0",
5
"LanguageCodes": [
6
"en-US",
7
"cs-CZ"
8
],
9
"Scope": ""
10
}
Copied!
Property
Type
Contract
Description
ClientToken
string
required
Token identifying the client application.
AccessToken
string
required
Access token of the client application.
Client
string
required
Name and version of the client application.
LanguageCodes
array of string
required
Language-culture codes of the Languages whose texts to return.
Scope
string
required
Scope of texts to return.

Response

1
{
2
"LanguageTexts": [
3
{
4
"LanguageCode": "en-US",
5
"Texts": {
6
"Address": "Address",
7
"AddressLine1": "Address line 1",
8
"AddressLine2": "Address line 2",
9
"AdultPlural": "Adults",
10
"Apartment": "Apartment",
11
"ApartmentPlural": "Apartments"
12
}
13
}
14
]
15
}
Copied!
Property
Type
Contract
Description
LanguageTexts
array of Language texts
required
Texts in the specified languages.

Language texts

Property
Type
Contract
Description
LanguageCode
string
required
Language-culture code of the Language.
Texts
number
required
Texts in the specified language by their keys.
Last modified 9d ago