2121
2222$ apiInstance = new \SpojeNET \CSas \Accounts \DefaultApi (new SpojeNET \CSas \ApiClient (
2323 [
24- 'apikey ' => Shr::cfg ('API_KEY ' ),
25- 'token ' => Shr::cfg ('ACCESS_TOKEN ' ),
26- 'debug ' => Shr::cfg ('API_DEBUG ' , false ),
27- 'sandbox ' => Shr::cfg ('SANDBOX_MODE ' ),
24+ 'apikey ' => Shr::cfg ('CSAS_API_KEY ' ),
25+ 'token ' => Shr::cfg ('CSAS_ACCESS_TOKEN ' ),
26+ 'debug ' => Shr::cfg ('CSAS_API_DEBUG ' , false ),
27+ 'sandbox ' => Shr::cfg ('CSAS_SANDBOX_MODE ' ),
2828 ],
2929));
3030
3434} catch (Exception $ e ) {
3535 echo 'Exception when calling DefaultApi->getAccounts: ' , $ e ->getMessage (), \PHP_EOL ;
3636}
37+
38+ /*
39+ "/usr/bin/php" "/home/vitex/Projects/SpojeNetIT/csas-accountsapi/Examples/accounts.php"
40+ SpojeNET\CSas\Model\GetAccounts200Response Object
41+ (
42+ [openAPINullablesSetToNull:protected] => Array
43+ (
44+ )
45+
46+ [container:protected] => Array
47+ (
48+ [pageNumber] => 0
49+ [pageCount] => 1
50+ [pageSize] => 2
51+ [accounts] => Array
52+ (
53+ [0] => SpojeNET\CSas\Model\Account Object
54+ (
55+ [openAPINullablesSetToNull:protected] => Array
56+ (
57+ )
58+
59+ [container:protected] => Array
60+ (
61+ [id] => AA195E7DB499B4D9F48D46C208625FF53F2245F7
62+ [identification] => SpojeNET\CSas\Model\AccountIdentification Object
63+ (
64+ [openAPINullablesSetToNull:protected] => Array
65+ (
66+ )
67+
68+ [container:protected] => Array
69+ (
70+ [iban] => CZ1208000000000259459101
71+ [other] => 0259459101/0800
72+ )
73+
74+ )
75+
76+ [currency] => CZK
77+ [servicer] => SpojeNET\CSas\Model\AccountServicer Object
78+ (
79+ [openAPINullablesSetToNull:protected] => Array
80+ (
81+ )
82+
83+ [container:protected] => Array
84+ (
85+ [bankCode] => 0800
86+ [countryCode] => CZ
87+ [bic] => GIBACZPX
88+ )
89+
90+ )
91+
92+ [nameI18N] => Jiří Spokojený
93+ [productI18N] => Osobní účet ČS II
94+ [ownersNames] => Array
95+ (
96+ [0] => Jiří Spokojený
97+ )
98+
99+ [relationship] => SpojeNET\CSas\Model\AccountRelationship Object
100+ (
101+ [openAPINullablesSetToNull:protected] => Array
102+ (
103+ )
104+
105+ [container:protected] => Array
106+ (
107+ [isOwner] => 1
108+ )
109+
110+ )
111+
112+ [suitableScope] => SpojeNET\CSas\Model\AccountSuitableScope Object
113+ (
114+ [openAPINullablesSetToNull:protected] => Array
115+ (
116+ )
117+
118+ [container:protected] => Array
119+ (
120+ [aISP] =>
121+ [pISP] =>
122+ )
123+
124+ )
125+
126+ [status] =>
127+ [relatedAgents] =>
128+ [currencyExchange] =>
129+ )
130+
131+ )
132+
133+ [1] => SpojeNET\CSas\Model\Account Object
134+ (
135+ [openAPINullablesSetToNull:protected] => Array
136+ (
137+ )
138+
139+ [container:protected] => Array
140+ (
141+ [id] => DEBCD8673D9A3F3EF3EFE4B799053FD49D2FF59F
142+ [identification] => SpojeNET\CSas\Model\AccountIdentification Object
143+ (
144+ [openAPINullablesSetToNull:protected] => Array
145+ (
146+ )
147+
148+ [container:protected] => Array
149+ (
150+ [iban] => CZ4108000000000782553098
151+ [other] => 0782553098/0800
152+ )
153+
154+ )
155+
156+ [currency] => CZK
157+ [servicer] => SpojeNET\CSas\Model\AccountServicer Object
158+ (
159+ [openAPINullablesSetToNull:protected] => Array
160+ (
161+ )
162+
163+ [container:protected] => Array
164+ (
165+ [bankCode] => 0800
166+ [countryCode] => CZ
167+ [bic] => GIBACZPX
168+ )
169+
170+ )
171+
172+ [nameI18N] => Jiří SPokojený - CM
173+ [productI18N] => Cizoměnový účet
174+ [ownersNames] => Array
175+ (
176+ [0] => Jiří Spokojený
177+ )
178+
179+ [relationship] => SpojeNET\CSas\Model\AccountRelationship Object
180+ (
181+ [openAPINullablesSetToNull:protected] => Array
182+ (
183+ )
184+
185+ [container:protected] => Array
186+ (
187+ [isOwner] =>
188+ )
189+
190+ )
191+
192+ [suitableScope] => SpojeNET\CSas\Model\AccountSuitableScope Object
193+ (
194+ [openAPINullablesSetToNull:protected] => Array
195+ (
196+ )
197+
198+ [container:protected] => Array
199+ (
200+ [aISP] =>
201+ [pISP] =>
202+ )
203+
204+ )
205+
206+ [status] =>
207+ [relatedAgents] =>
208+ [currencyExchange] =>
209+ )
210+
211+ )
212+
213+ )
214+
215+ )
216+
217+ )
218+ Done.
219+ */
0 commit comments