diff --git a/src/APIs/Customers.php b/src/APIs/Customers.php index 9af5f32..5916405 100644 --- a/src/APIs/Customers.php +++ b/src/APIs/Customers.php @@ -69,6 +69,23 @@ public function detailsById($customerId) + /** + * Generates a forgot password email and sends it to the customer's email address. + * + * @param string $username + * @param string $password + * + * @return array|Exception + * @throws Exception + * @link https://resellerclub.webpropanel.com/kb/customer-forgot-password-api + */ + public function forgotPassword($username) + { + return $this->get('forgot-password', ['username' => $username]); + } + + + /** * Authenticates the Customer and returns the Customer details, if authenticated. *