From c952a0211873f5158304808448597db6a081d669 Mon Sep 17 00:00:00 2001 From: javidlulu Date: Fri, 21 May 2021 15:25:59 +0530 Subject: [PATCH] Fix unlink user API unauthorized issue --- src/Controllers/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Controllers/User.php b/src/Controllers/User.php index 9d146cb..e200e12 100644 --- a/src/Controllers/User.php +++ b/src/Controllers/User.php @@ -41,7 +41,7 @@ public function unlinkUser($userAuthorizationId = false) $userAuthorizationId = $this->userAuthorizationId; } $url = $this->api_url . $this->main()->GetEndpoint('USER_AUTH') . "/$userAuthorizationId"; - $endpoint = 'v2' . $this->main()->GetEndpoint('USER_AUTH') . "/$userAuthorizationId"; + $endpoint = '/v2' . $this->main()->GetEndpoint('USER_AUTH') . "/$userAuthorizationId"; $options = $this->HmacCallOpts('DELETE', $endpoint); return $this->doCall(false, 'delete', $url, [], $options);