Fixed oversight in URL construction.
This commit is contained in:
parent
8712013261
commit
58cbf592fe
2 changed files with 3 additions and 3 deletions
2
VERSION
2
VERSION
|
@ -1 +1 @@
|
||||||
0.1.0
|
0.1.1
|
||||||
|
|
|
@ -91,7 +91,7 @@ class OAuth2Client {
|
||||||
$args['client_id'] = $clientId;
|
$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);
|
$request->setBodyParams($args);
|
||||||
|
|
||||||
$response = $useAnonymous
|
$response = $useAnonymous
|
||||||
|
@ -148,7 +148,7 @@ class OAuth2Client {
|
||||||
$args['client_secret'] = $clientSecret;
|
$args['client_secret'] = $clientSecret;
|
||||||
}
|
}
|
||||||
|
|
||||||
$request = $this->httpClient->createRequest('POST', '/oauth2/token');
|
$request = $this->httpClient->createRequest('POST', $this->urls->getApiUrl('/oauth2/token'));
|
||||||
$request->setBodyParams($args);
|
$request->setBodyParams($args);
|
||||||
|
|
||||||
$response = $useAnonymous
|
$response = $useAnonymous
|
||||||
|
|
Loading…
Reference in a new issue