Library for working with QIWI API.

Overview

Асихронная библиотека для работы с QIWI Api

Latest PyPI package version

Установка

Установить новейшую версию можно командой:

pip install -U https://github.com/qxtony/qiwimaster/archive/main.zip

Установить новейшую версию c PyPI:

pip install qiwimaster

Примеры

Авторизация

from qiwimaster import QIWIApi
import asyncio

api = QIWIApi(token="", phone=89999999999) # token можно получить на https://qiwi.com/api.

Получение баланса

from qiwimaster import QIWIApi
import asyncio

api = QIWIApi(token="", phone=89999999999) # token можно получить на https://qiwi.com/api.

async def main():
   print(await api.balance())

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Перевод средств другому человеку

from qiwimaster import QIWIApi
import asyncio

api = QIWIApi(token="", phone=89999999999) # token можно получить на https://qiwi.com/api.

async def main():
   print(await api.pay(number="+7999999999", amount=100, comment="лови сотку!"))

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Выставление счёта

from qiwimaster import QIWIApi
import asyncio

api = QIWIApi(auth_key="") # auth_key можно получить на https://qiwi.com/p2p-admin/transfers/api.

async def main():
   a = await api.bill(price=100, lifetime=10, comment="тестовый счёт")
   print(a)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Проверка счёта на оплату

from qiwimaster import QIWIApi
import asyncio

api = QIWIApi(auth_key="") # auth_key можно получить на https://qiwi.com/p2p-admin/transfers/api.

async def main():
   result = await api.bill(price=1, lifetime=10, comment="тестовый счёт")

   print(f"Ссылка для оплаты: {result['payUrl']}")
   bill_id = result["billId"]

   while True:
     check_pay = await api.check(bill_id)
     if check_pay["status"]["value"] == "PAID":
         print("Счёт оплачен!")
         exit(0)

loop = asyncio.get_event_loop()
loop.run_until_complete(main())

Обратите внимание, что для выставление счёта используется auth_key, а для получения баланса и перевода token и phone. Пожалуйста, не перепутайте.

Owner
qxtony
qxtony
this is a telegram torrent bot

owner of this repo :- AYUSH contact me :- AYUSH Slam Mirror Bot This is a telegram bot writen in python for mirroring files on the internet to our bel

AYUSH 237 Dec 16, 2021
Esse script procura qualquer, dados que você queira na wikipedia! Em breve traremos um com dados em toda a internet.

Buscador de dados simples Dependências necessárias Para você poder começar a utilizar esta ferramenta, você vai precisar da dependência "wikipedia", p

Erick Campoy 4 Feb 24, 2022
Bot inspirado no Baidu Antivírus

Baidu Bot Bot inspirado no lendário Baidu Antivírus Informações O programa foi inteiramente feito em Python, sinta-se livre para fazer qualquer altera

Caio Eduardo de Albuquerque Magalhães 1 Dec 18, 2021
Get informed when your DeFI Earn CRO Validator is jailed or changes the commission rate.

CRO-DeFi-Warner Intro CRO-DeFi-Warner can be used to notify you when a validator changes the commission rate or gets jailed. It can also notify you wh

5 May 16, 2022
Api REST para gerenciamento de cashback.

Documentação API para gerenciamento de cashback - MaisTODOS Features Em construção... Tecnologias utilizadas Back end Python 3.8.10 Django REST Framew

Alinne Grazielle 2 Jan 22, 2022
A Telegram bot for personal utilities

Aqua Aqua is a Telegram bot for personal utilities. Installation Prerequisites: Install Poetry for managing dependencies and fork/clone the repository

Guilherme Vasconcelos 2 Mar 30, 2022
Roaster - this gui app + program bundle roasts.

Roaster - this gui app + program bundle roasts.

Harsh ADV) 1 Jan 04, 2022
An Amazon Price Tracker app helps you to buy which product you want within sale price by sending an E-Mail.

Amazon Price Tracker An Amazon Price Tracker app helps you to buy which product you want within sale price by sending an E-Mail. Installing Download t

Aytaç Kaşoğlu 2 Feb 10, 2022
Python bindings for LibreTranslate

Python bindings for LibreTranslate

Argos Open Tech 42 Jan 03, 2023
PokemonGo-Bot - The Pokemon Go Bot, baking with community.

PokemonGo-Bot PokemonGo-Bot is a project created by the PokemonGoF team. Since no public API available for now, a patch to use HASH-Server was applied

3.8k Jan 08, 2023
This is a python bot that automatically logs in, clicks the new button, and sends heroes to work in the bombcrypto game

This is a python bot that automatically logs in, clicks the new button, and sends heroes to work in the bombcrypto game. It is fully open source and free.

856 Jan 04, 2023
For specific function. For my own convenience. Remind owner to share data to another DITO user.

For specific function. For my own convenience. Remind owner to share data to another DITO user.

Meigo 1 Dec 14, 2021
Demo to explain how to use AWS Chalice to connect to twitter API and change profile picture at scheduled times.

chalice-twitter-demo Demo to explain how to use AWS Chalice to connect to twitter API and change profile picture at scheduled times. Video Demo Click

Ahmed Mohamed 4 Dec 13, 2021
Python wrapper for the Intercom API.

python-intercom Not officially supported Please note that this is NOT an official Intercom SDK. The third party that maintained it reached out to us t

Intercom 215 Dec 22, 2022
Huggingface inference with GPU Docker on AWS

This repository contains code to containerize and deploy a GPU docker on AWS for summarization task. Find a detailed blogpost here Youtube Video Versi

Ramsri Goutham Golla 21 Dec 30, 2022
Authenticate your League of legends account on riot client in a few lines of code.

lol-authenticator v1.0.0 Content index Project Setup Dependencies Project Setup Dependencies Python v3.9.6 If you don't have Python installed on your

Cássio Fontoura 5 Aug 28, 2022
WhatsApp Status Tracker With Python

Warning!! This Repo is Purly educational purpose Don't use this to stalk on others, which is subjective to crime Pre-Req: Telegram bot of your own wit

Vignesh Karunagaran 10 Dec 09, 2022
MONAI Deploy App SDK offers a framework and associated tools to design, develop and verify AI-driven applications in the healthcare imaging domain.

MONAI Deploy App SDK offers a framework and associated tools to design, develop and verify AI-driven applications in the healthcare imaging domain.

Project MONAI 49 Dec 23, 2022
A basic Ubisoft API wrapper created in python.

UbisoftAPI A basic Ubisoft API wrapper created in python. I will be updating this with more endpoints as time goes on. Please note that this is my fir

Ethan 2 Oct 31, 2021
An anime themed telegram bot that can convert telegram media.

ShoukoKomiRobot • 𝕎𝕣𝕚𝕥𝕥𝕖𝕟 𝕀𝕟 Python3 • 𝕃𝕚𝕓𝕣𝕒𝕣𝕪 𝕌𝕤𝕖𝕕 Pyrogram • 𝕊𝕠𝕗𝕥𝕨𝕒𝕣𝕖 𝕌𝕤𝕖𝕕 Ebook-convert Deploy 𝔽𝕠𝕣𝕜 𝕥𝕙𝕚𝕤 𝕣

25 Aug 14, 2022