bankacc
Cправочник Банковских Счетов
Запрос на чтение справочника Банковских Счетов
/dicts/bankacc
Usage and SDK Samples
curl -X GET\
-H "Authorization: Basic [[basicHash]]"\
\
-H "Accept: application/json"\
"http://localhost:8080/dicts/bankacc?id="
import io.swagger.client.*;
import io.swagger.client.auth.*;
import io.swagger.client.model.*;
import io.swagger.client.api.DictsApi;
import java.io.File;
import java.util.*;
public class DictsApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: eac_rest_auth
HttpBasicAuth eac_rest_auth = (HttpBasicAuth) defaultClient.getAuthentication("eac_rest_auth");
eac_rest_auth.setUsername("YOUR USERNAME");
eac_rest_auth.setPassword("YOUR PASSWORD");
// Configure API key authorization: eac_rest_session
ApiKeyAuth eac_rest_session = (ApiKeyAuth) defaultClient.getAuthentication("eac_rest_session");
eac_rest_session.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//eac_rest_session.setApiKeyPrefix("Token");
DictsApi apiInstance = new DictsApi();
String id = id_example; // String | Необязательный идентификатор сущности справочкика для фильтрации
try {
array[CBankAccountStruct] result = apiInstance.bankacc(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DictsApi#bankacc");
e.printStackTrace();
}
}
}
import io.swagger.client.api.DictsApi;
public class DictsApiExample {
public static void main(String[] args) {
DictsApi apiInstance = new DictsApi();
String id = id_example; // String | Необязательный идентификатор сущности справочкика для фильтрации
try {
array[CBankAccountStruct] result = apiInstance.bankacc(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DictsApi#bankacc");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: eac_rest_auth)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];
// Configure API key authorization: (authentication scheme: eac_rest_session)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"EACRestAPISession"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"EACRestAPISession"];
String *id = id_example; // Необязательный идентификатор сущности справочкика для фильтрации (optional)
DictsApi *apiInstance = [[DictsApi alloc] init];
// Cправочник Банковских Счетов
[apiInstance bankaccWith:id
completionHandler: ^(array[CBankAccountStruct] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var EacClientRestApi = require('eac_client_rest_api');
var defaultClient = EacClientRestApi.ApiClient.instance;
// Configure HTTP basic authorization: eac_rest_auth
var eac_rest_auth = defaultClient.authentications['eac_rest_auth'];
eac_rest_auth.username = 'YOUR USERNAME'
eac_rest_auth.password = 'YOUR PASSWORD'
// Configure API key authorization: eac_rest_session
var eac_rest_session = defaultClient.authentications['eac_rest_session'];
eac_rest_session.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//eac_rest_session.apiKeyPrefix['EACRestAPISession'] = "Token"
var api = new EacClientRestApi.DictsApi()
var opts = {
'id': id_example // {{String}} Необязательный идентификатор сущности справочкика для фильтрации
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.bankacc(opts, callback);
using System;
using System.Diagnostics;
using IO.Swagger.Api;
using IO.Swagger.Client;
using IO.Swagger.Model;
namespace Example
{
public class bankaccExample
{
public void main()
{
// Configure HTTP basic authorization: eac_rest_auth
Configuration.Default.Username = "YOUR_USERNAME";
Configuration.Default.Password = "YOUR_PASSWORD";
// Configure API key authorization: eac_rest_session
Configuration.Default.ApiKey.Add("EACRestAPISession", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("EACRestAPISession", "Bearer");
var apiInstance = new DictsApi();
var id = id_example; // String | Необязательный идентификатор сущности справочкика для фильтрации (optional)
try
{
// Cправочник Банковских Счетов
array[CBankAccountStruct] result = apiInstance.bankacc(id);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling DictsApi.bankacc: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure HTTP basic authorization: eac_rest_auth
Swagger\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Swagger\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: eac_rest_session
Swagger\Client\Configuration::getDefaultConfiguration()->setApiKey('EACRestAPISession', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Swagger\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('EACRestAPISession', 'Bearer');
$api_instance = new Swagger\Client\ApiDictsApi();
$id = id_example; // String | Необязательный идентификатор сущности справочкика для фильтрации
try {
$result = $api_instance->bankacc($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DictsApi->bankacc: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::SwaggerClient::Configuration;
use WWW::SwaggerClient::DictsApi;
# Configure HTTP basic authorization: eac_rest_auth
$WWW::SwaggerClient::Configuration::username = 'YOUR_USERNAME';
$WWW::SwaggerClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: eac_rest_session
$WWW::SwaggerClient::Configuration::api_key->{'EACRestAPISession'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'EACRestAPISession'} = "Bearer";
my $api_instance = WWW::SwaggerClient::DictsApi->new();
my $id = id_example; # String | Необязательный идентификатор сущности справочкика для фильтрации
eval {
my $result = $api_instance->bankacc(id => $id);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DictsApi->bankacc: $@\n";
}
from __future__ import print_statement
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure HTTP basic authorization: eac_rest_auth
swagger_client.configuration.username = 'YOUR_USERNAME'
swagger_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: eac_rest_session
swagger_client.configuration.api_key['EACRestAPISession'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['EACRestAPISession'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.DictsApi()
id = id_example # String | Необязательный идентификатор сущности справочкика для фильтрации (optional)
try:
# Cправочник Банковских Счетов
api_response = api_instance.bankacc(id=id)
pprint(api_response)
except ApiException as e:
print("Exception when calling DictsApi->bankacc: %s\n" % e)
Parameters
Name | Description |
---|---|
id |
String
Необязательный идентификатор сущности справочкика для фильтрации
|