Skip to content

mymtw/belveb_exchange_client

Repository files navigation

belveb-exchange-client

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

Requirements.

Python >= 3.6

Installation & Usage

pip install

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

Setuptools

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

Getting Started

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)

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

bearerAuth

  • Type: Bearer authentication (JWT)

Author

Notes for Large OpenAPI documents

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 *

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published