Async AAIO api wrapper for python
Project description
AAIO API for Python 3
About
This library is a wrapper for the https://aaio.io API from enthusiasts. All methods are described and all types are
explicitly defined. The library does not handle any exceptions, so be careful. Methods that create requests to aaio.io
return an unprocessed server response in JSON format (Parsing JSON on the library side). But the create_payment()
method for example
returns a reference (str) and does not create any I/O bound load. A new session is used for each request. (Maybe will be
revised in future). Please write about all problems related to the library in issues. API is up-to-date as of 25 August
2023.
Download
Dependencies
- aiohttp -
pip install aiohttp
Official website
Usage
- Get on-hold balance of user
import asyncio
import aaio
async def main():
client = aaio.AAIO('MERCHANT ID', 'SECRET KEY', 'API KEY')
balances = await client.get_balances() # {'balance': 100, 'hold': }
on_hold = balances['hold']
print(on_hold)
asyncio.run(main())
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.