@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | require '../vendor/autoload.php'; |
4 | 4 | |
5 | -$companyId = 0000;// company id provided by Kobas |
|
6 | -$clientId = '';// client id provided by Kobas |
|
7 | -$clientSecret = '';// client secret provided by Kobas |
|
5 | +$companyId = 0000; // company id provided by Kobas |
|
6 | +$clientId = ''; // client id provided by Kobas |
|
7 | +$clientSecret = ''; // client secret provided by Kobas |
|
8 | 8 | $clientScope = ''; // client scope provided by Kobas |
9 | 9 | |
10 | 10 | $provider = new \Kobas\APIClient\Auth\Provider($companyId, $clientId, $clientSecret, $clientScope); |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | require '../vendor/autoload.php'; |
4 | 4 | |
5 | -$companyId = 0000;// company id provided by Kobas |
|
6 | -$clientId = '';// client id provided by Kobas |
|
7 | -$clientSecret = '';// client secret provided by Kobas |
|
5 | +$companyId = 0000; // company id provided by Kobas |
|
6 | +$clientId = ''; // client id provided by Kobas |
|
7 | +$clientSecret = ''; // client secret provided by Kobas |
|
8 | 8 | $clientScope = ''; // client scope provided by Kobas |
9 | 9 | |
10 | 10 | $provider = new \Kobas\APIClient\Auth\Provider($companyId, $clientId, $clientSecret, $clientScope); |
@@ -92,9 +92,9 @@ |
||
92 | 92 | if (!self::$token instanceof AccessToken || self::$token->hasExpired()) { |
93 | 93 | try { |
94 | 94 | self::$token = $provider->getAccessToken('client_credentials', ['scope' => $this->scopes]); |
95 | - } catch(IdentityProviderException $e) { |
|
95 | + } catch (IdentityProviderException $e) { |
|
96 | 96 | throw new AuthenticationException($e->getMessage(), $e->getCode()); |
97 | - } catch(ConnectException $e) { |
|
97 | + } catch (ConnectException $e) { |
|
98 | 98 | throw new CurlException($e->getMessage(), $e->getCode()); |
99 | 99 | } |
100 | 100 | } |