Skip to content

Latest commit

 

History

History
72 lines (58 loc) · 1.93 KB

README.MD

File metadata and controls

72 lines (58 loc) · 1.93 KB

The checkdomain API client for php

A php client for the Checkdomain Rest API.

Visit our Checkdomain API Guide to get a extended version of instructions.

Setup

Via Composer
{
    "require" : {
        "checkdomain/api-client" : "^1.0.0"
    }
}

Example

<?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

Semantic Versioning 2.0.0

We follow the rules of Semantic Versioning 2.0.0 .

Summary

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.

License

Copyright (c) 2017 Checkdomain GmbH, This is Free Software distributed under the MIT license.