diff --git a/src/Someline/Rest/RestClient.php b/src/Someline/Rest/RestClient.php index 35fc1c6..3358c41 100755 --- a/src/Someline/Rest/RestClient.php +++ b/src/Someline/Rest/RestClient.php @@ -416,7 +416,7 @@ public function withOAuthTokenTypePassword($requestData = null) */ public function withOAuthTokenTypeClientCredentials($requestData = null) { - return $this->withOAuthToken(self::GRANT_TYPE_REFRESH_TOKEN, $requestData); + return $this->withOAuthToken(self::GRANT_TYPE_CLIENT_CREDENTIALS, $requestData); } /**