Sync version monobank api
Project description
Sync/Async Python3 Monobank API
Installation
pip install mbnk
Getting Started
import os
from mbnk import Monobank
# Your Monobank API token
TOKEN = os.getenv('<X-Token>')
mbnk = Monobank(api_token=TOKEN)
#Get currencies rates list
currencies_list = mbnk.public.currency_rates()
print(currencies_list)
#Get Client Info
client_info = mbnk.personal.info()
#Setup webhook url
WEB_HOOK_URL = 'https://example.com/webhook/endpoint'
mbnk.personal.set_webhook(web_hook_url=WEB_HOOK_URL)
#Get statement
from_timestamp = (datetime.now() + timedelta(days=-31)).timestamp()
statement = mbnk.personal.statement(from_date=int(from_timestamp))
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
mbnk-0.0.3.tar.gz
(7.3 kB
view hashes)
Built Distribution
mbnk-0.0.3-py3-none-any.whl
(6.6 kB
view hashes)