2017 © Pedro Peláez
 

library register-api

Register.eu public API for customers with direct activation

image

register-eu/register-api

Register.eu public API for customers with direct activation

  • Thursday, November 2, 2017
  • by ibrambe
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Register.eu public API

Build Status Coverage Status, (*1)

The Register.eu public API project wraps around Guzzle and offers HMAC authentication. You can use the client to easily connect to the Register.eu public API endpoint., (*2)

To learn more about the Register.eu public API, go to https://api.register.eu/., (*3)

Install

composer require register-eu/register-api

Example

The code example below registers a new domain name on your account., (*4)

<?php

require dirname(__DIR__) . '/vendor/autoload.php';

$client = new \RegisterEu\Client(
    [
        'debug' => true,
        'base_uri' => 'https://api.register.eu',
        'registereu_api_key' => 'XXXX',
        'registereu_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., (*5)

The Versions

02/11 2017

dev-master

9999999-dev

Register.eu public API for customers with direct activation

  Sources   Download

The Requires

 

The Development Requires