All URIs are relative to https://topal.vitan.ch:9001, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
banksDelete() | DELETE /api/v1/clients/{clientId}/banks/{id} | Delete bank |
banksGet() | GET /api/v1/clients/{clientId}/banks | Retreives list of banks |
banksGetByCode() | GET /api/v1/clients/{clientId}/banks/bycode/{code} | Get bank by code |
banksGet_0() | GET /api/v1/clients/{clientId}/banks/{id} | Get bank by id |
banksPost() | POST /api/v1/clients/{clientId}/banks | Save bank |
banksDelete($id, $client_id): object
Delete bank
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\BanksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$id = 56; // int
$client_id = 'client_id_example'; // string
try {
$result = $apiInstance->banksDelete($id, $client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BanksApi->banksDelete: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
client_id | string |
object
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
banksGet($client_id): \Topal\Client\Model\Bank[]
Retreives list of banks
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\BanksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$client_id = 'client_id_example'; // string
try {
$result = $apiInstance->banksGet($client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BanksApi->banksGet: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
client_id | string |
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
banksGetByCode($code, $client_id): \Topal\Client\Model\Bank
Get bank by code
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\BanksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$code = 'code_example'; // string
$client_id = 'client_id_example'; // string
try {
$result = $apiInstance->banksGetByCode($code, $client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BanksApi->banksGetByCode: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
code | string | ||
client_id | string |
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
banksGet_0($id, $client_id): \Topal\Client\Model\Bank
Get bank by id
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\BanksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$id = 56; // int
$client_id = 'client_id_example'; // string
try {
$result = $apiInstance->banksGet_0($id, $client_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BanksApi->banksGet_0: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | int | ||
client_id | string |
No authorization required
- Content-Type: Not defined
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
banksPost($client_id, $bank): \Topal\Client\Model\Bank
Save bank
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new Topal\Client\Api\BanksApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
// This is optional, `GuzzleHttp\Client` will be used as default.
new GuzzleHttp\Client()
);
$client_id = 'client_id_example'; // string
$bank = new \Topal\Client\Model\Bank(); // \Topal\Client\Model\Bank
try {
$result = $apiInstance->banksPost($client_id, $bank);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BanksApi->banksPost: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
client_id | string | ||
bank | \Topal\Client\Model\Bank |
No authorization required
- Content-Type:
application/json
,text/json
,application/xml
,text/xml
,application/x-www-form-urlencoded
- Accept:
application/json
,text/json
,application/xml
,text/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]