1 | <?php |
||
2 | /** |
||
3 | * Subreg - RegisterDomain Example |
||
4 | * |
||
5 | * @author Vítězslav Dvořák <[email protected]> |
||
6 | * @copyright (C) 2018 Spoje.Net |
||
7 | */ |
||
8 | |||
9 | namespace Subreg; |
||
10 | |||
11 | require_once '../vendor/autoload.php'; |
||
12 | |||
13 | \Ease\Shared::instanced()->loadConfig('../tests/config.json'); |
||
14 | |||
15 | $client = new Client(\Ease\Shared::instanced()->configuration); |
||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||
16 | |||
17 | $unexistentDomain = strtolower(\Ease\Sand::randomString()).'.cz'; |
||
18 | |||
19 | $nsHosts = array("ns.spoje.net", "ns2.spoje.net"); |
||
20 | |||
21 | print_r($client->registerDomain($unexistentDomain, 'G-000001', 'G-000001', |
||
22 | 'G-000001', 'ukulele', $nsHosts)); |
||
23 | |||
24 | |||
25 | $response = $client->checkDomain($unexistentDomain); |
||
26 | |||
27 | var_dump($response); |
||
28 |