inwx/domrobot

PHP Client to easily use the Domrobot API of INWX

v3.1.0 2020-02-19 14:17 UTC

This package is auto-updated.

Last update: 2020-05-19 14:50:46 UTC


README

68747470733a2f2f696d616765732e696e77782e636f6d2f6c6f676f732f696e77782e706e67

INWX Domrobot PHP Client

You can access all functions of our frontend via our API, which is available via the XML-RPC or JSON-RPC protocol and thus can be easily consumed with all programming languages.

There is also an OT&E test system, which you can access via ote.inwx.com. Here you will find the known web interface which is using a test database. On the OT&E system no actions will be charged. So you can test as much as you like there.

Documentation

You can view a detailed description of the API functions in our documentation. You can find the online documentation by clicking here.

If you still experience any kind of problems don't hesitate to contact our support via email.

Installation

the recommended way is via composer:

composer require inwx/domrobot

now you can use the client by importing the Domrobot class:

use INWX\Domrobot;

Example

<?php

error_reporting(E_ALL);
require 'vendor/autoload.php';

$username = 'your_username';
$password = 'your_password';

$domrobot = new \INWX\Domrobot();
$result = $domrobot->setLanguage('en')
    ->useOte()
    ->useJson()
    ->setDebug(true)
    ->login($username, $password);

if ($result['code'] == 1000) {
    $object = 'domain';
    $method = 'check';
    $params = ['domain' => 'mydomain.com'];

    $result = $domrobot->call($object, $method, $params);
}

print_r($result);

$domrobot->logout();

You can also have a look at the example.php file in the project for even more info.

License

MIT