Skip to content

Commit

Permalink
Fix suggest domain name endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
rytisder authored Apr 8, 2021
1 parent ffc0ebf commit 4af1402
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/APIs/Domains.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Exception;
use habil\ResellerClub\Helper;
use SimpleXMLElement;

/**
* Class Domains
Expand Down Expand Up @@ -156,22 +155,23 @@ public function ukAvailable(
}

/**
* @see https://manage.logicboxes.com/kb/node/1085
*
* @param string $keyword
* @param string $tld
* @param array $tld
* @param bool $exactMatch
*
* @return array|Exception
* @throws Exception
* @link https://manage.logicboxes.com/kb/node/1085
*/
public function suggestNames($keyword, $tld = '', $exactMatch = false)
public function suggestNames($keyword, $tld = [], $exactMatch = false)
{
return $this->get(
'suggest-names',
[
'keyword' => $keyword,
'tld' => $tld,
'exact-match' => $exactMatch,
'tld-only' => $tld,
'exact-match' => $exactMatch ? 'true' : 'false',
],
'v5/'
);
Expand Down

0 comments on commit 4af1402

Please sign in to comment.