From d918f7b99e8eab0f89265f2177118f74c52fe9b0 Mon Sep 17 00:00:00 2001 From: Kyle Yee Date: Sat, 14 Dec 2019 15:36:38 +0800 Subject: [PATCH] fix typo --- src/Endpoints/Accounts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; }