afbora / resellerclub-php-sdk
ResellerClub API 的 PHP SDK
dev-master
2017-05-20 16:24 UTC
Requires
This package is auto-updated.
Last update: 2024-08-29 03:42:33 UTC
README
composer.json
:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/afbora/resellerclub-php-sdk.git"
}
],
"require": {
"afbora/resellerclub-php-sdk": "dev-master"
}
用法
注意:所有函数都返回 ResellerClub API 的原始响应。(这将在未来改变)
$resellerClub = \afbora\ResellerClub\ResellerClub(<userId>, <apiKey>, true); // Last argument is for testmode.
// Get Available TLDs
$resellerClub->domains()->getTLDs();
// Check Domain Availablity
$resellerClub->domains()->available(['google', 'example'], ['com', 'net']); // This will check google.com, google.net, example.com and example.net
目前所有域名、联系人、客户 API 都可用。