Skip to content

Commit 93cefac

Browse files
committed
Add Domainr search domain name availability example
1 parent 19d320c commit 93cefac

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
require '../src/Curl.class.php';
3+
4+
5+
$curl = new Curl();
6+
$curl->get('https://domai.nr/api/json/search', array(
7+
'q' => 'example',
8+
));
9+
10+
foreach ($curl->response->results as $result) {
11+
echo $result->domain . ' is ' . $result->availability . '.' . "\n";
12+
}

0 commit comments

Comments
 (0)