@@ -27,11 +27,20 @@ Get the current balance of the account.
2727require_once(__DIR__ . '/vendor/autoload.php');
2828
2929
30+ // Configure API key authorization: ApiKeyAuth
31+ $config = SpojeNET\Csas\Configuration::getDefaultConfiguration()->setApiKey('web-api-key', 'YOUR_API_KEY');
32+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
33+ // $config = SpojeNET\Csas\Configuration::getDefaultConfiguration()->setApiKeyPrefix('web-api-key', 'Bearer');
34+
35+ // Configure Bearer (JWT) authorization: bearerAuth
36+ $config = SpojeNET\Csas\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
37+
3038
3139$apiInstance = new SpojeNET\Csas\Api\DefaultApi(
3240 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
3341 // This is optional, `GuzzleHttp\Client` will be used as default.
34- new GuzzleHttp\Client()
42+ new GuzzleHttp\Client(),
43+ $config
3544);
3645$id = 'id_example'; // string | Opaque system ID of the account
3746
5564
5665### Authorization
5766
58- No authorization required
67+ [ ApiKeyAuth ] ( ../../README.md#ApiKeyAuth ) , [ bearerAuth ] ( ../../README.md#bearerAuth )
5968
6069### HTTP request headers
6170
@@ -83,11 +92,20 @@ Get a list of accounts for the authenticated user.
8392require_once(__DIR__ . '/vendor/autoload.php');
8493
8594
95+ // Configure API key authorization: ApiKeyAuth
96+ $config = SpojeNET\Csas\Configuration::getDefaultConfiguration()->setApiKey('web-api-key', 'YOUR_API_KEY');
97+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
98+ // $config = SpojeNET\Csas\Configuration::getDefaultConfiguration()->setApiKeyPrefix('web-api-key', 'Bearer');
99+
100+ // Configure Bearer (JWT) authorization: bearerAuth
101+ $config = SpojeNET\Csas\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
102+
86103
87104$apiInstance = new SpojeNET\Csas\Api\DefaultApi(
88105 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
89106 // This is optional, `GuzzleHttp\Client` will be used as default.
90- new GuzzleHttp\Client()
107+ new GuzzleHttp\Client(),
108+ $config
91109);
92110$size = 56; // int | Number of accounts to return
93111$page = 56; // int | Page number to return
@@ -117,7 +135,7 @@ try {
117135
118136### Authorization
119137
120- No authorization required
138+ [ ApiKeyAuth ] ( ../../README.md#ApiKeyAuth ) , [ bearerAuth ] ( ../../README.md#bearerAuth )
121139
122140### HTTP request headers
123141
@@ -145,11 +163,20 @@ Obtain list of statements for a given account.
145163require_once(__DIR__ . '/vendor/autoload.php');
146164
147165
166+ // Configure API key authorization: ApiKeyAuth
167+ $config = SpojeNET\Csas\Configuration::getDefaultConfiguration()->setApiKey('web-api-key', 'YOUR_API_KEY');
168+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
169+ // $config = SpojeNET\Csas\Configuration::getDefaultConfiguration()->setApiKeyPrefix('web-api-key', 'Bearer');
170+
171+ // Configure Bearer (JWT) authorization: bearerAuth
172+ $config = SpojeNET\Csas\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
173+
148174
149175$apiInstance = new SpojeNET\Csas\Api\DefaultApi(
150176 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
151177 // This is optional, `GuzzleHttp\Client` will be used as default.
152- new GuzzleHttp\Client()
178+ new GuzzleHttp\Client(),
179+ $config
153180);
154181$id = 'id_example'; // string | Unique system identification of the client account
155182$fromDate = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | Date from which the statement history should be obtained (yyyy-MM-dd)
@@ -183,7 +210,7 @@ try {
183210
184211### Authorization
185212
186- No authorization required
213+ [ ApiKeyAuth ] ( ../../README.md#ApiKeyAuth ) , [ bearerAuth ] ( ../../README.md#bearerAuth )
187214
188215### HTTP request headers
189216
@@ -211,11 +238,20 @@ Paginated and optionally filtered (by dates) transaction list for given account.
211238require_once(__DIR__ . '/vendor/autoload.php');
212239
213240
241+ // Configure API key authorization: ApiKeyAuth
242+ $config = SpojeNET\Csas\Configuration::getDefaultConfiguration()->setApiKey('web-api-key', 'YOUR_API_KEY');
243+ // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
244+ // $config = SpojeNET\Csas\Configuration::getDefaultConfiguration()->setApiKeyPrefix('web-api-key', 'Bearer');
245+
246+ // Configure Bearer (JWT) authorization: bearerAuth
247+ $config = SpojeNET\Csas\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
248+
214249
215250$apiInstance = new SpojeNET\Csas\Api\DefaultApi(
216251 // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
217252 // This is optional, `GuzzleHttp\Client` will be used as default.
218- new GuzzleHttp\Client()
253+ new GuzzleHttp\Client(),
254+ $config
219255);
220256$id = 'id_example'; // string | Unique system identification of the client account
221257$fromDate = new \DateTime('2013-10-20T19:20:30+01:00'); // \DateTime | Filter transactions starting from a specific day in UTC (yyyy-MM-dd)
@@ -251,7 +287,7 @@ try {
251287
252288### Authorization
253289
254- No authorization required
290+ [ ApiKeyAuth ] ( ../../README.md#ApiKeyAuth ) , [ bearerAuth ] ( ../../README.md#bearerAuth )
255291
256292### HTTP request headers
257293
0 commit comments