diff --git a/src/Endpoints/Accounts.php b/src/Endpoints/Accounts.php index 2264534..9509feb 100644 --- a/src/Endpoints/Accounts.php +++ b/src/Endpoints/Accounts.php @@ -52,7 +52,7 @@ class Accounts implements API public function getDomainDetails(string $accountID, string $domainName): array { - $response = $this->adapter->get('accounts/' . $accountID . '/registrar/domains' . $domainName); + $response = $this->adapter->get('accounts/' . $accountID . '/registrar/domains/' . $domainName); $this->body = json_decode($response->getBody()); @@ -61,14 +61,14 @@ class Accounts implements API public function lockDomain(string $accountID, string $domainName): array { - $response = $this->adapter->put('accounts/' . $accountID . '/registrar/domains' . $domainName, ["locked" => true]); + $response = $this->adapter->put('accounts/' . $accountID . '/registrar/domains/' . $domainName, ["locked" => true]); $this->body = json_decode($response->getBody()); return $this->body; } public function unlockDomain(string $accountID, string $domainName): array { - $response = $this->adapter->put('accounts/' . $accountID . '/registrar/domains' . $domainName, ["locked" => false]); + $response = $this->adapter->put('accounts/' . $accountID . '/registrar/domains/' . $domainName, ["locked" => false]); $this->body = json_decode($response->getBody()); return $this->body; }