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