Skip to content

Commit 00d3f1e

Browse files
committed
initial usage example added
1 parent 172bc54 commit 00d3f1e

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

Examples/balance.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
require_once(dirname(__DIR__) . '/vendor/autoload.php');
4+
5+
$apiInstance = new \SpojeNET\Csas\Accounts\DefaultApi(
6+
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
7+
// This is optional, `GuzzleHttp\Client` will be used as default.
8+
new GuzzleHttp\Client()
9+
);
10+
$id = 'id_example'; // string | Opaque system ID of the account
11+
12+
try {
13+
$result = $apiInstance->getAccountBalance($id);
14+
print_r($result);
15+
} catch (Exception $e) {
16+
echo 'Exception when calling DefaultApi->getAccountBalance: ', $e->getMessage(), PHP_EOL;
17+
}

0 commit comments

Comments
 (0)