Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
55 lines (45 loc) · 1.35 KB

File metadata and controls

55 lines (45 loc) · 1.35 KB
description
Gets the supported languages by the autotranslate.

Get Supported Languages

URL Requires Auth HTTP Method
/api/v1/autotranslate.getSupportedLanguages yes GET

Query Parameters

Argument Example Required Description
targetLanguage en No Language in which language names will be returned.

Example Call

curl -H "X-Auth-Token: 9HqLlyZOugoStsXCUfD_0YdwnNnunAJF8V47U3QHXSq" \
     -H "X-User-Id: aobEdbYhXfu5hkeqG" \
     http://localhost:3000/api/v1/autotranslate.getSupportedLanguages?targetLanguage=pt

Example Result

{
    "languages": [
        {
            "language": "af",
            "name": "Africâner"
        },
        {
            "language": "sq",
            "name": "Albanês"
        },
        {
            "language": "de",
            "name": "Alemão"
        },
        {
            "language": "am",
            "name": "Amárico"
        }
    ],
    "success": true
}

Change Log

Version Description
1.3.0 Added