Skip to content

Latest commit

 

History

History
70 lines (46 loc) · 1.71 KB

File metadata and controls

70 lines (46 loc) · 1.71 KB

SimplyCom\DefaultApi

All URIs are relative to https://api.simply.com/2, except if the operation defines another base path.

Method HTTP request Description
domaincheck() GET /my/domaincheck/{domain}/

domaincheck()

domaincheck($domain): object

Check for domain availability

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');


// Configure HTTP basic authorization: basicAuth
$config = SimplyCom\Configuration::getDefaultConfiguration()
              ->setUsername('YOUR_USERNAME')
              ->setPassword('YOUR_PASSWORD');


$apiInstance = new SimplyCom\Api\DefaultApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);
$domain = example.com; // string | The domain you wish to check the status on.

try {
    $result = $apiInstance->domaincheck($domain);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling DefaultApi->domaincheck: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
domain string The domain you wish to check the status on.

Return type

object

Authorization

basicAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]