Using Dictionary API

require 'vendor/autoload.php';


use \Ceic\Api\Configuration; use \Ceic\Api\Apis\DictionaryApi;

$accessToken = "ENTER YOUR API KEY HERE";
$config = Configuration::getDefaultConfiguration() Configuration::setDefaultConfiguration($config);
$dictionaryApi = new DictionaryApi(); $dictionaryQueryEntity = new DictionaryApiQueryEntity() $dictionaryQueryEntity->setToken($accessToken);
$classificationsResult = $dictionaryApi->getClassificationsQuery($dictionaryQueryEntity); $countriesResult = $dictionaryApi->getCountriesQuery($dictionaryQueryEntity);
// Access classifications result data $firstClassification = $classificationsResult->getData()[0]; $secondClassification = $classificationsResult->getData()[1];
// Access countries result data $firstCountry = $countriesResult->getData()[0]; $secondCountry = $countriesResult->getData()[1];