Service Provider API DomainLanguages

Synopsis
public array DomainLanguages()
Description

To help you select the correct ISO codes for the language in the API functions, we offer you the possibility to take a look at the languages allowed by our system. We've put all the language codes allowed by our system in an XML feed with descriptions in four languages:

XML
This function can be called using GET / POST requests.
Parameters
Type Parameter Mandatory Description
string lan yes Language.
  • en - English
  • de - German
  • es - Spanish
  • fr - French
Version
1.0
<?php
/* URL to Sedo's API */
$baseUrl = 'https://api.sedo.com/api/v1/DomainLanguages?';

/* API function parameters */
$params = [
    'output_method' => 'xml',
    'lan'           => 'en',
];

/* build request URL */
$request = $baseUrl . http_build_query($params);

/* fire API request */
$fp = @fopen($request, 'r');

/* read response line by line */
while (!@feof($fp)) {
    echo fread($fp, 4096);
}

/* close the connection */
fclose($fp);

For a successful request, you will receive an XML document as response in the following format:

<?xml version="1.0" encoding="UTF-8"?>
<SEDODOMAINLANGUAGES ver="1.0">
    <language iso="af">Afrikaans</language>
    <language iso="sq">Albanian</language>
    <language iso="ar">Arabic</language>
    <language iso="eu">Basque</language>
    <language iso="be">Belarusian</language>
    <language iso="bg">Bulgarian</language>
    <language iso="ca">Catalan</language>
    <language iso="zh">Chinese</language>
    ⋮
    <language iso="uk">Ukrainian</language>
    <language iso="hu">Hungarian</language>
    <language iso="ur">Urdu</language>
    <language iso="ve">Venda</language>
    <language iso="vi">Vietnamese</language>
    <language iso="xh">Xhosa</language>
    <language iso="yi">Yiddish</language>
    <language iso="zu">Zulu</language>
    <language iso="la">Latin</language>
</SEDODOMAINLANGUAGES>