pyPayokAPI
Python implementation of Payok.io public API
This library may not fully implement API. However I will continue to maintain it, so if you need some not implemented methods - just open an issue.
Installation
Installation using pip (a Python package manager):
$ pip install pyPayokAPI
Usage
Everything is as simple as the API itself.
- Create pyPayokAPI instance
- Access API methods
- Most methods return result as correspondent class, so you can access data as fields
from pyPayokAPI import pyPayokAPI
client = pyPayokAPI(
xxxx, # API ID
"xxxxxxx") # API key
balance = client.balance()
print("Balance: {}\nRef.balance: {}".format(balance.balance, balance.ref_balance))
You can also check tests.py.
Exceptions
Exceptions are rised using pyPayokAPIException class.