Dictionary API
- getSslServerSoftware()
- getServersFeatures()
- getServersOperatingSystems()
- getServersLocations()
- getWordpressLocations()
- getFaxToEmailLocations()
getSslServerSoftware()
Description
Returns the list of SSL Server Software.
Signature
getSslServerSoftware(): DataObject\Dictionary\SSLServerSoftware[]
Throws
Example
<?php
use Dreamscape\ResellerApiSdk\Api;
use Dreamscape\ResellerApiSdk\Exception;
use Dreamscape\ResellerApiSdk\Authenticator\ApiKey;
use Dreamscape\ResellerApiSdk\Http\Adapter\Curl;
$api = new Api(new Curl(new ApiKey('YourAPIKeyGoesHere'), 'https://reseller-api.sandbox.ds.network'));
try {
$serverSoftwareList = $api->dictionary->getSslServerSoftware();
foreach ($serverSoftwareList as $serverSoftware) {
echo 'ID: ' . $serverSoftware->id . PHP_EOL;
echo 'Name: ' . $serverSoftware->name . PHP_EOL;
echo PHP_EOL;
}
} catch (Exception\AuthenticationException $e) {
// Handle the exception.
}
getServersFeatures()
Description
Returns the list of Servers product features.
Signature
getServersFeatures(): DataObject\Dictionary\ServersFeature[]
Throws
Example
<?php
use Dreamscape\ResellerApiSdk\Api;
use Dreamscape\ResellerApiSdk\Exception;
use Dreamscape\ResellerApiSdk\Authenticator\ApiKey;
use Dreamscape\ResellerApiSdk\Http\Adapter\Curl;
$api = new Api(new Curl(new ApiKey('YourAPIKeyGoesHere'), 'https://reseller-api.sandbox.ds.network'));
try {
$features = $api->dictionary->getServersFeatures();
foreach ($features as $feature) {
echo 'Type: ' . $feature->type . PHP_EOL;
echo 'Values: ' . implode(', ', $feature->values) . PHP_EOL;
echo PHP_EOL;
}
} catch (Exception\AuthenticationException $e) {
// Handle the exception.
}
getServersOperatingSystems()
Description
Returns the list of Servers product operating systems.
Signature
getServersOperatingSystems(): DataObject\Dictionary\ServersOperatingSystem[]
Throws
Example
<?php
use Dreamscape\ResellerApiSdk\Api;
use Dreamscape\ResellerApiSdk\Exception;
use Dreamscape\ResellerApiSdk\Authenticator\ApiKey;
use Dreamscape\ResellerApiSdk\Http\Adapter\Curl;
$api = new Api(new Curl(new ApiKey('YourAPIKeyGoesHere'), 'https://reseller-api.sandbox.ds.network'));
try {
$operatingSystems = $api->dictionary->getServersOperatingSystems();
foreach ($operatingSystems as $operatingSystem) {
echo 'Family: ' . $operatingSystem->family . PHP_EOL;
echo 'Name: ' . $operatingSystem->name . PHP_EOL;
echo PHP_EOL;
}
} catch (Exception\AuthenticationException $e) {
// Handle the exception.
}
getServersLocations()
Description
Returns the list of Servers product locations.
Signature
getServersLocations(): DataObject\Dictionary\ServersLocation[]
Throws
Example
<?php
use Dreamscape\ResellerApiSdk\Api;
use Dreamscape\ResellerApiSdk\Exception;
use Dreamscape\ResellerApiSdk\Authenticator\ApiKey;
use Dreamscape\ResellerApiSdk\Http\Adapter\Curl;
$api = new Api(new Curl(new ApiKey('YourAPIKeyGoesHere'), 'https://reseller-api.sandbox.ds.network'));
try {
$locations = $api->dictionary->getServersLocations();
foreach ($locations as $location) {
echo 'Code: ' . $location->code . PHP_EOL;
echo 'Name: ' . $location->name . PHP_EOL;
echo PHP_EOL;
}
} catch (Exception\AuthenticationException $e) {
// Handle the exception.
}
getWordpressLocations()
Description
Returns the list of Wordpress product locations.
Signature
getWordpressLocations(): DataObject\Dictionary\WordpressLocation[]
Throws
Example
<?php
use Dreamscape\ResellerApiSdk\Api;
use Dreamscape\ResellerApiSdk\Exception;
use Dreamscape\ResellerApiSdk\Authenticator\ApiKey;
use Dreamscape\ResellerApiSdk\Http\Adapter\Curl;
$api = new Api(new Curl(new ApiKey('YourAPIKeyGoesHere'), 'https://reseller-api.sandbox.ds.network'));
try {
$locations = $api->dictionary->getWordpressLocations();
foreach ($locations as $location) {
echo 'Code: ' . $location->code . PHP_EOL;
echo 'Name: ' . $location->name . PHP_EOL;
echo PHP_EOL;
}
} catch (Exception\AuthenticationException $e) {
// Handle the exception.
}
getFaxToEmailLocations()
Description
Returns the list of Fax to Email product locations.
Signature
getFaxToEmailLocations(): DataObject\Dictionary\FaxToEmailLocation[]
Throws
Example
<?php
use Dreamscape\ResellerApiSdk\Api;
use Dreamscape\ResellerApiSdk\Exception;
use Dreamscape\ResellerApiSdk\Authenticator\ApiKey;
use Dreamscape\ResellerApiSdk\Http\Adapter\Curl;
$api = new Api(new Curl(new ApiKey('YourAPIKeyGoesHere'), 'https://reseller-api.sandbox.ds.network'));
try {
$locations = $api->dictionary->getFaxToEmailLocations();
foreach ($locations as $location) {
echo 'Country: ' . $location->countryName . PHP_EOL;
echo 'State: ' . $location->stateName . PHP_EOL;
echo PHP_EOL;
}
} catch (Exception\AuthenticationException $e) {
// Handle the exception.
}