checkdomain/api-client
Composer 安装命令:
composer require checkdomain/api-client
包简介
The checkdomain API client for php
README 文档
README
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.
统计信息
- 总下载量: 4
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-01-04