Package

API

Settings

bexiopy.settings.get_setting(name)[source]

Receive a name and try to return the corresponding setting.

Parameters:name (str) – name of setting
Returns:value of requested setting
Return type:mixed

Django

The settings defined in the root settings of your django project have priority over defaults.

Python

If you use the API without Django, you can define the settings in this file. Just add the following to the top of the file with your settings:

settings = {
    'BEXIO_AUTH_URL': '...',
    'BEXIO_CLIENT_ID': '...',
    'BEXIO_CLIENT_SECRET': '...',
    ...
}

Django Views