Get

Retrieve a list of our languages

Demo

URL Find your token on - yumpu.com Token

Run request

‚Äč
curl
PHP
JavaScript
Java
curl

Example:

curl -X GET -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" "http://api.yumpu.com/2.0/document/languages.json"
PHP

Example:

require_once('../yumpu.php');
$yumpu = new Yumpu();
$laguages = $yumpu->getLanguages();
print_r($laguages);
JavaScript

Example:

var yumpu = require('yumpu');
yumpu.setToken('yourToken');
yumpu.getDocumentLanguages(function(statusCode, document){
console.log('Status: ' + statusCode);
console.log(document);
});
Java

Example:

Yumpu y = new Yumpu("your access token");
System.out.println(y.getLanguages());

Whatever language you are using, the result will be the same.

{
"total": 23,
"languages": [
{
"iso": "en",
"name": "english"
},
{
"iso": "de",
"name": "german"
},
{
"iso": "fr",
"name": "french"
},
{
"iso": "es",
"name": "spanish"
},
{
"iso": "pt",
"name": "portuguese"
},
{
"iso": "it",
"name": "italian"
},
{
"iso": "ro",
"name": "romanian"
},
{
"iso": "nl",
"name": "dutch"
},
{
"iso": "la",
"name": "latin"
},
{
"iso": "da",
"name": "danish"
},
{
"iso": "sv",
"name": "swedish"
},
{
"iso": "no",
"name": "norwegian"
},
{
"iso": "hu",
"name": "hungarian"
},
{
"iso": "id",
"name": "indonesian"
},
{
"iso": "tr",
"name": "turkish"
},
{
"iso": "fi",
"name": "finnish"
},
{
"iso": "lv",
"name": "latvian"
},
{
"iso": "lt",
"name": "lithuanian"
},
{
"iso": "cs",
"name": "czech"
},
{
"iso": "ru",
"name": "russian"
},
{
"iso": "bg",
"name": "bulgarian"
},
{
"iso": "ar",
"name": "arabic"
},
{
"iso": "xx",
"name": "unknown"
}
],
"state": "success",
"completed_in": 0.0145
}