No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
This Python package is automatically generated by the OpenAPI Generator project:
- API version: 1
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
Python >= 3.6
If the python package is hosted on a repository, you can install directly using:
pip install git+https://github.com/mymtw/belveb_exchange_client.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com/mymtw/belveb_exchange_client.git
)
Then import the package:
import belveb_exchange_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import belveb_exchange_client
Please follow the installation procedure and then run the following:
import time
import belveb_exchange_client
from pprint import pprint
from belveb_exchange_client.api import default_api
from belveb_exchange_client.model.rates import Rates
# Defining the host is optional and defaults to https://dbo.bveb.by/public/exchange/1
# See configuration.py for a list of all supported configuration parameters.
configuration = belveb_exchange_client.Configuration(
host = "https://dbo.bveb.by/public/exchange/1"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization (JWT): bearerAuth
configuration = belveb_exchange_client.Configuration(
access_token = 'YOUR_BEARER_TOKEN'
)
# Enter a context with an instance of the API client
with belveb_exchange_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = default_api.DefaultApi(api_client)
exchange_type = "beznal" # str |
try:
# Bel VEB exchange rates client
api_response = api_instance.get_rates_get(exchange_type)
pprint(api_response)
except belveb_exchange_client.ApiException as e:
print("Exception when calling DefaultApi->get_rates_get: %s\n" % e)
All URIs are relative to https://dbo.bveb.by/public/exchange/1
Class | Method | HTTP request | Description |
---|---|---|---|
DefaultApi | get_rates_get | GET /getRates | Bel VEB exchange rates client |
- Type: Bearer authentication (JWT)
If the OpenAPI document is large, imports in belveb_exchange_client.apis and belveb_exchange_client.models may fail with a RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
Solution 1: Use specific imports for apis and models like:
from belveb_exchange_client.api.default_api import DefaultApi
from belveb_exchange_client.model.pet import Pet
Solution 2: Before importing the package, adjust the maximum recursion limit as shown below:
import sys
sys.setrecursionlimit(1500)
import belveb_exchange_client
from belveb_exchange_client.apis import *
from belveb_exchange_client.models import *