kazist/resellerclub-php-sdk

Kazist PHP SDK for ResellerClub API

1.0.7 2018-02-13 06:26 UTC

This package is auto-updated.

Last update: 2024-09-18 04:10:06 UTC


README

composer.json:

"repositories": [
      {
          "type": "vcs",
          "url":  "https://github.com/kazist/resellerclub-php-sdk.git"
      }
  ],
  "require": {
    "kazist/resellerclub-php-sdk": "dev-master"
  }

用法

注意:所有函数都返回ResellerClubs API的原始响应。(这将在未来改变)

$resellerClub = \Kazist\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都是可用的。