combell/combell-api
最新稳定版本:v3.0.2
Composer 安装命令:
composer require combell/combell-api
包简介
Combell public API for customers with direct activation
README 文档
README
The Combell public API project wraps around Guzzle and offers HMAC authentication. You can use the client to easily connect to the Combell public API endpoint.
To learn more about the Combell public API, go to https://api.combell.com/.
Install
composer require combell/combell-api
If you need support for PHP versions older than 7.4, you will need to use version 2.0:
composer require 'combell/combell-api:^2.0'
Example
The code example below registers a new domain name on your account.
<?php require dirname(__DIR__) . '/vendor/autoload.php'; $client = new \Combell\Client( [ 'debug' => true, 'base_uri' => 'https://api.combell.com', 'combell_api_key' => 'XXXX', 'combell_api_secret' => 'YYYY' ] ); $body = [ 'domain_name' => 'domain-name-to-register.eu' ]; // Register domain name $response = $client->post('/v2/domains/registrations', ['json' => $body]); // Dump location header with link to provisioning job var_dump( $response->getHeader('Location') );
Go to the examples folder to see more examples.
Combell.nl customers
When you have a Dutch customer account (combell.nl), use https://api.combell.nl as endpoint.
统计信息
- 总下载量: 18.9k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 15
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2016-09-12