@@ -27,11 +27,20 @@ Get the current balance of the account.
27
27
require_once(__DIR__ . '/vendor/autoload.php');
28
28
29
29
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
+
30
38
31
39
$apiInstance = new SpojeNET\Csas\Api\DefaultApi(
32
40
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
33
41
// This is optional, `GuzzleHttp\Client` will be used as default.
34
- new GuzzleHttp\Client()
42
+ new GuzzleHttp\Client(),
43
+ $config
35
44
);
36
45
$id = 'id_example'; // string | Opaque system ID of the account
37
46
55
64
56
65
### Authorization
57
66
58
- No authorization required
67
+ [ ApiKeyAuth ] ( ../../README.md#ApiKeyAuth ) , [ bearerAuth ] ( ../../README.md#bearerAuth )
59
68
60
69
### HTTP request headers
61
70
@@ -83,11 +92,20 @@ Get a list of accounts for the authenticated user.
83
92
require_once(__DIR__ . '/vendor/autoload.php');
84
93
85
94
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
+
86
103
87
104
$apiInstance = new SpojeNET\Csas\Api\DefaultApi(
88
105
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
89
106
// This is optional, `GuzzleHttp\Client` will be used as default.
90
- new GuzzleHttp\Client()
107
+ new GuzzleHttp\Client(),
108
+ $config
91
109
);
92
110
$size = 56; // int | Number of accounts to return
93
111
$page = 56; // int | Page number to return
@@ -117,7 +135,7 @@ try {
117
135
118
136
### Authorization
119
137
120
- No authorization required
138
+ [ ApiKeyAuth ] ( ../../README.md#ApiKeyAuth ) , [ bearerAuth ] ( ../../README.md#bearerAuth )
121
139
122
140
### HTTP request headers
123
141
@@ -145,11 +163,20 @@ Obtain list of statements for a given account.
145
163
require_once(__DIR__ . '/vendor/autoload.php');
146
164
147
165
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
+
148
174
149
175
$apiInstance = new SpojeNET\Csas\Api\DefaultApi(
150
176
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
151
177
// This is optional, `GuzzleHttp\Client` will be used as default.
152
- new GuzzleHttp\Client()
178
+ new GuzzleHttp\Client(),
179
+ $config
153
180
);
154
181
$id = 'id_example'; // string | Unique system identification of the client account
155
182
$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 {
183
210
184
211
### Authorization
185
212
186
- No authorization required
213
+ [ ApiKeyAuth ] ( ../../README.md#ApiKeyAuth ) , [ bearerAuth ] ( ../../README.md#bearerAuth )
187
214
188
215
### HTTP request headers
189
216
@@ -211,11 +238,20 @@ Paginated and optionally filtered (by dates) transaction list for given account.
211
238
require_once(__DIR__ . '/vendor/autoload.php');
212
239
213
240
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
+
214
249
215
250
$apiInstance = new SpojeNET\Csas\Api\DefaultApi(
216
251
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
217
252
// This is optional, `GuzzleHttp\Client` will be used as default.
218
- new GuzzleHttp\Client()
253
+ new GuzzleHttp\Client(),
254
+ $config
219
255
);
220
256
$id = 'id_example'; // string | Unique system identification of the client account
221
257
$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 {
251
287
252
288
### Authorization
253
289
254
- No authorization required
290
+ [ ApiKeyAuth ] ( ../../README.md#ApiKeyAuth ) , [ bearerAuth ] ( ../../README.md#bearerAuth )
255
291
256
292
### HTTP request headers
257
293
0 commit comments