A php client for the Checkdomain Rest API.
Visit our Checkdomain API Guide to get a extended version of instructions.
{
"require" : {
"checkdomain/api-client" : "^1.0.0"
}
}
<?php
require_once __DIR__ . '/../vendor/autoload.php'; // Autoload files using Composer autoload
/**
* Create a new api-client instance
*
* Replace {yourToken} with your secret token
*
* For further informations please visit
* @see https://developer.checkdomain.de/guide/#1-registration-for-api-access
*/
$client = new \ApiClient\Client(
'v1',
'{yourToken}'
);
/**
* Example: How to create a new nameserver record
*
* Replace {domains} with identifier
*
* For further informations please visit
* @see https://developer.checkdomain.de/reference/v1/domains/%7Bdomain%7D/nameservers/records/
*/
$response = $client->post('domains/{domains}/nameservers/records', [
'name' => '@',
'value' => '172.0.0.1',
'ttl' => 180,
'priority' => 0,
'type' => 'A',
]);
var_dump($response);
More helpful examples stored at the example folder.
In addition take a look at the API Reference
We follow the rules of Semantic Versioning 2.0.0 .
Given a version number MAJOR.MINOR.PATCH, increment the:
MAJOR version when you make incompatible API changes, MINOR version when you add functionality in a backwards-compatible manner, and PATCH version when you make backwards-compatible bug fixes. Additional labels for pre-release and build metadata are available as extensions to the MAJOR.MINOR.PATCH format.
For more informations visit Semantic Versioning.
Copyright (c) 2017 Checkdomain GmbH, This is Free Software distributed under the MIT license.