<?php
require '../src/Curl/Curl.php';

use \Curl\Curl;

$curl = new Curl();
$curl->get('https://api/domainr.com/v1/search', array(
    'client_id' => 'php_curl_class',
    'q' => 'example',
));

foreach ($curl->response->results as $result) {
    echo $result->domain . ' is ' . $result->availability . '.' . "\n";
}

<?php
require '../src/Curl/Curl.php';

use \Curl\Curl;

$curl = new Curl();
$curl->get('https://domainr.com/api/json/search', array(
    'client_id' => 'php_curl_class',
    'q' => 'example',
));

foreach ($curl->response->results as $result) {
    echo $result->domain . ' is ' . $result->availability . '.' . "\n";
}

--- 
+++ 
@@ -4,7 +4,7 @@
 use \Curl\Curl;
 
 $curl = new Curl();
-$curl->get('https://domainr.com/api/json/search', array(
+$curl->get('https://api/domainr.com/v1/search', array(
     'client_id' => 'php_curl_class',
     'q' => 'example',
 ));
Update to new v1 endpoint

We're moving to a versioned API endpoint. Thanks!