Asynchronous wrapper for Plisio API
Project description
aioplisio - Asynchronous wrapper for Plisio API
Модуль в разработке, сейчас недоступны методы withdraw
Установка 💾
- Установка, используя пакетный менеджер pip
$ pip install aioplisio
- Установка с GitHub (требуется git)
$ git clone https://github.com/Fsoky/aioplisio
$ cd aioplisio
$ python setup.py install
- Или
$ pip install git+https://github.com/Fsoky/aioplisio
Дополнительно:
Зарегистрируйтесь на сайте Plisio и получите API-ключ.
Официальная документация по API: PLISIO API DOCS
Примеры использования:
- Шаблон
import asyncio
from aioplisio import AIOPlisioClient
async def main() -> None:
async with AIOPlisioClient("API-KEY") as plisio:
...
if __name__ == "__main__":
asyncio.run(main())
- Получение транзакций
async with AIOPlisioClient("YOUR API-KEY") as plisio:
transactions = await plisio.get.transactions() # You can pass txnID for search by it
print(transactions.data)
- Инвойсы (чеки)
async with AIOPlisioClient("YOUR API-KEY") as plisio:
invoice = await plisio.invoice.create(
"ORDER-NAME",
12345001, # Order number
amount=10 # 10 USDT
currency="USDT" # Crypto
source_currency="USD" # Fiat
expire_min=15
)
print(f"Your invoice: {transaction.data.invoice_url}")
transaction = await plisio.get.transactions(invoice.data.txn_id)
print(transaction.data.status)
...И также другие методы
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.
Source Distribution
aioplisio-1.0.0.tar.gz
(8.5 kB
view details)
File details
Details for the file aioplisio-1.0.0.tar.gz
.
File metadata
- Download URL: aioplisio-1.0.0.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db2c3475bd456659de01b8fc079bbdc0f0a5b93bc576ba5f68c3e55955b92d01 |
|
MD5 | ddf57d9da44f2d626c6c724e9c57870a |
|
BLAKE2b-256 | 00ae24015baa5bebddb3597a43be8f03e614db4dd78631d1010fd2eb6a759673 |