getVersion(); echo "Version: ", $version, "\n\n"; } catch (Exception $e) { exit($e); } /** * get config of client - before configure should be null */ try { $config = $client->getConfig(); echo "Config Before Update: ", $config, "\n\n"; } catch (Exception $e) { exit($e); } /** * configure client */ try { $config_params = [ 'debug_level' => 3, 'debug_file' => '-', 'client_timeout' => 5000, 'smaers_timeout' => 2000, ]; $config = $client->configure($config_params); echo "Configuration: ", $config, "\n\n"; } catch (Exception $e) { exit($e); } /** * get config of client - after configure should be instance of ClientConfiguration class */ try { $config = $client->getConfig(); echo "Config After Update: ", $config, "\n\n"; } catch (Exception $e) { exit($e); } /** * request example */ try { $response = $client->request( 'GET', '/tss', ["states" => ["DISABLED", "UNINITIALIZED"]] ); echo "Request response: ", $response, "\n\n"; } catch (Exception $e) { exit($e); }