You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo 'Exception when calling AddressesApi->getAddresses: ', $e->getMessage(), PHP_EOL;
69
66
}
70
67
?>
71
68
```
72
69
70
+
## Authorization
71
+
72
+
To get access to API you need to make request to `https://www.{domain}/oauth/v2/token` for access token using your client credentials (`client_id` and `client_secret`).
73
+
Then it could be injected to `Configuration` which is used to instantiate API clients.
74
+
Whole authorization process is based on OAuth2 protocol with `grant_type = client_credentials` and `scope = integration`.
75
+
Obtained token is valid for the next 24h, so it is good practice to cache it for that period.
76
+
77
+
###Example
78
+
```php
79
+
//Get OAuth2 access token
80
+
$authorization = new DocPlanner\Client\Authorization('AUTHORIZATION_URL');
0 commit comments