combell-nl / combell-api
Combell public API for customers with direct activation
Installs: 4 245
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 0
Requires
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: 5.4.*
- satooshi/php-coveralls: ^1.0
This package is not auto-updated.
Last update: 2022-01-19 16:29:09 UTC
README
Attention: please use github.com/combell/combell-api instead. This repo is archived and won't be updated anymore.
Combell public API
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.nl/.
Install
composer require combell-nl/combell-api
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.nl', 'combell_api_key' => 'XXXX', 'combell_api_secret' => 'YYYY' ] ); $body = new \stdClass(); $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.