From 58cbf592fe824a3abf0f446d05cf7311260946db Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 16 Nov 2024 04:25:23 +0000 Subject: [PATCH] Fixed oversight in URL construction. --- VERSION | 2 +- src/OAuth2/OAuth2Client.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/VERSION b/VERSION index 6e8bf73..17e51c3 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.0 +0.1.1 diff --git a/src/OAuth2/OAuth2Client.php b/src/OAuth2/OAuth2Client.php index 1fec602..37581ad 100644 --- a/src/OAuth2/OAuth2Client.php +++ b/src/OAuth2/OAuth2Client.php @@ -91,7 +91,7 @@ class OAuth2Client { $args['client_id'] = $clientId; } - $request = $this->httpClient->createRequest('POST', '/oauth2/request-authorise'); + $request = $this->httpClient->createRequest('POST', $this->urls->getApiUrl('/oauth2/request-authorise')); $request->setBodyParams($args); $response = $useAnonymous @@ -148,7 +148,7 @@ class OAuth2Client { $args['client_secret'] = $clientSecret; } - $request = $this->httpClient->createRequest('POST', '/oauth2/token'); + $request = $this->httpClient->createRequest('POST', $this->urls->getApiUrl('/oauth2/token')); $request->setBodyParams($args); $response = $useAnonymous