Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bankson.fi Python client

API documentation: Official bankson.fi documentation

Installation

pip install bankson

Usage

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.body

The snippet above will list all inbound reference payments. For more examples see Official bankson.fi documentation

Test mode

To use Bankson API in test mode specify test=True while initializing:

client = Bankson(api_key='', private_key='', test=True)

License

The MIT License

About

Bankson Python Client

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages