Home

PHP

Languages

If you would like to get a list of langaues can use the following to search or browse through all available languages in our catalog.

API Function: get_languages

Parameters:

Name Type Description
username string Your API username. You should have received this with your account
subscription_id string Your Subscription ID. You can copy or regenerate it from your API management interface.

 

Response fields:

Name Type Description
language_id numeric The unique ID associated with the language
language_name string The language name
language_code string The language iso code

 

              
              
              
              
<?php   
$api_username             = '*******';
$api_subscription         = '*******';

try
{
        $client     = new SoapClient('https://synced.io/api/v2?wsdl');
        $languages = $client->get_languages($api_username, $api_subscription);			
}
catch(Exception $e)
{
        echo $e->getMessage();
}    


if(!empty($languages))
{
    print_r($languages);
}
?>