Get list of dictionary entities

The example code exports all company types, and can be easily modify to return results for any other Dictionary method.


require('vendor/autoload.php');
use Emis\Http\Client;
use Emis\Company\Api\Proxy\Dictionary;

$client = new Client();
$client->setApi(Client::COMPANY_API);
$client->setToken("YOUR_TOKEN");

$dictionary = new Dictionary($client);

foreach($dictionary->getCompanyTypeList()->getResultList() as $companyType){
	var_export($companyType);
}