From c0dee1327775947280ad68f4e9451ef52e5d6759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maurice=20Preu=C3=9F?= Date: Sun, 2 Oct 2022 23:25:42 +0200 Subject: [PATCH] Update UsersTrait.php --- src/Accounts/Traits/UsersTrait.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Accounts/Traits/UsersTrait.php b/src/Accounts/Traits/UsersTrait.php index 88a893d..5f5687d 100644 --- a/src/Accounts/Traits/UsersTrait.php +++ b/src/Accounts/Traits/UsersTrait.php @@ -19,7 +19,7 @@ trait UsersTrait */ public function getAuthedUser(): Result { - return $this->get('users/me'); + return $this->get('v3/user'); } /** @@ -31,7 +31,7 @@ trait UsersTrait */ public function createUser(array $parameters): Result { - return $this->post('v2/users', $parameters); + return $this->post('v3/users', $parameters); } /** @@ -43,7 +43,7 @@ trait UsersTrait */ public function isEmailExisting(string $email): Result { - return $this->post('v2/users/check-email', [ + return $this->post('v3/users/check', [ 'email' => $email, ]); }