Dictionary API

getSslServerSoftware()

Description

Returns the list of SSL Server Software.

Signature

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

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

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

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

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.
}