Skip to content
phw edited this page Oct 12, 2012 · 9 revisions

GET /language/{languageCode}

Request: GET /language/{languageCode}

Returns a single language with the given ISO 639-2/T language code.

Request headers

Header Description
Authorize oAuth 2 authentication header
Accept application/json or application/xml
Accept-Language The language in which the localized language name is returned. Currently the API supports de and en as valid language codes.

Response status codes

HTTP status Description
200 Ok Successful request.
400 Bad Request The language code is not a valid ISO 639-2/T language code.
404 Not Found The language with the given language code does not exist.

Example

Load details for the Spanish language, localized in English:

GET /v1/language/spa HTTP/1.1
Host: api.textking.com
Accept: application/json
Accept-Language: en
Authorize: Bearer youraccesstoken

Response:

HTTP/1.1 200 Ok
Content-Type: application/json; charset=utf-8

{
    
}
Clone this wiki locally