camoo / hosting
Camoo.Hosting API
v1.4.0
2024-05-07 07:28 UTC
Requires
- php: >=8.0
- ext-curl: *
- ext-json: *
- ext-openssl: *
- camoo/curl-http-client: ^1.0.2
Requires (Dev)
- phpstan/phpstan: ^1.10
- phpunit/phpunit: ^9.5
Suggests
- phpunit/phpunit: Allows automated tests to be run without system-wide install.
README
CAMOO SARL是喀麦隆一家经ANTIC认证的注册商。您可以使用我们的API来检查域名可用性或注册喀麦隆域名扩展,如.CM、.CO.CM、.EDU.CM、.NET.CM或.COM.CM
这是一个示例库,可以用来向camoo.hosting发送API请求!您可以查看我们的文档获取更多信息。
需求
CAMOO.HOSTING API客户端需要PHP版本5.6及以上
示例
use Camoo\Hosting\Modules\Domains; // set your token salt for the local cache. // you can visit this link https://api.wordpress.org/secret-key/1.1/salt/ to pickup one define('ACCESS_TOKEN_SALT', 'Your super secret Key here'); // SET your CAMOO.HOSTING creadentials define('cm_email', 'you@gmail.com'); define('cm_passwd', '2BSe3@pMRbCnV>J(G'); $oDomain = new Domains(); $oResponse = $oDomain->checkAvailability('example', 'cm'); // Get Entity var_dump($oResponse->getEntity()); // OR get Array instead of entity var_dump($oResponse->getJson());