Skip to main content

Python implementation of Payok.io (https://payok.io/) pubilc API

Project description

PyPi Package Version Supported Python versions PyPi downloads

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.

  1. Create pyPayokAPI instance
  2. Access API methods
  3. 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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyPayokAPI-0.0.2.tar.gz (8.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page