API documentation: Official bankson.fi documentation
pip install bankson
First create an API key in Bankson settings and save the private key locally.
from bankson import Bankson, RequestError
with open('/path/to/private_key_file') as privatefile:
keydata = privatefile.read()
client = Bankson(api_key='<api key uuid>', private_key=keydata)
try:
print client.inboundpayments.list()
except RequestError as err:
print 'Request error'
print err.status
print err.bodyThe snippet above will list all inbound reference payments. For more examples see Official bankson.fi documentation
To use Bankson API in test mode specify test=True while initializing:
client = Bankson(api_key='', private_key='', test=True)The MIT License