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. Пожалуйста, не перепутайте.

You might also like...
A working bypass for discord gc spamming

IllusionGcSpammer A working bypass for discord gc spamming Installation Run pip install pip install DiscordGcSpammer then your good to go. Usage You c

Automatically pulls specified repository whenever a specified file is pushed. Great for working collaboratively when you need to run something locally.

autopull Simple python tool that allows you to automatically pull from a github repository whenever a file with a specified name is uploaded installat

Instagram auto reporting tool 100% working

INSTA REPORTER Instagram auto reporting tool 100% working Description this tool is made by Guccifer Shubham (shubhushubhu99) and by using this tool yo

alpaca-trade-api-python is a python library for the Alpaca Commission Free Trading API.

alpaca-trade-api-python is a python library for the Alpaca Commission Free Trading API. It allows rapid trading algo development easily, with support for both REST and streaming data interfaces

Beyonic API Python official client library simplified examples using Flask, Django and Fast API.
Beyonic API Python official client library simplified examples using Flask, Django and Fast API.

Beyonic API Python official client library simplified examples using Flask, Django and Fast API.

Python API wrapper library for Convex Value API

convex-value-python Python API wrapper library for Convex Value API. Further Links: Convex Value homepage @ConvexValue on Twitter JB on Twitter Authen

This an API wrapper library for the OpenSea API written in Python 3.

OpenSea NFT API Python 3 wrapper This an API wrapper library for the OpenSea API written in Python 3. The library provides a simplified interface to f

Aio-binance-library - Async library for connecting to the Binance API on Python

aio-binance-library Async library for connecting to the Binance API on Python Th

Official python API for Phish.AI public and private API to detect zero-day phishing websites

phish-ai-api Summary Official python API for Phish.AI public and private API to detect zero-day phishing websites How it Works (TLDR) Essentially we h

Owner
qxtony
qxtony
A small repository with convenience functions for working with the Notion API.

Welcome! Within this respository are a few convenience functions to assist with the pulling and pushing of data from the Notion API.

null 10 Jul 9, 2022
fair-test is a library to build and deploy FAIR metrics tests APIs supporting the specifications used by the FAIRMetrics working group.

☑️ FAIR test fair-test is a library to build and deploy FAIR metrics tests APIs supporting the specifications used by the FAIRMetrics working group. I

Maastricht University IDS 6 Oct 30, 2022
A.I and game for gomoku, working only on windows

Gomoku (A.I of gomoku) The goal of the project is to create an artificial intelligence of gomoku. Goals Beat the opponent. Requirements Python 3.7+ Wo

Luis Rosario 13 Jun 20, 2021
Working TikTok Username Auto-Claimer/Sniper/Swapper which will autoclaim username if it´s available

TikTok-AutoClaimer Working TikTok Username Auto-Claimer/Sniper/Swapper which will autoclaim username if it´s available Usage Python 3.6 or above is re

Kevin 18 Dec 8, 2022
A MassDM selfbot which is working in 2021

mass-dm-discord - Little preview of the Logger and the Spammer Features Logging User IDS Sending DMs to the logged IDs Blacklist IDs (add the ID of th

karma.meme 88 Dec 26, 2022
Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & runs for 24x7 hours.

PowerfulBotStatus-IDN-C-X Easy & powerful bot to check if your all Telegram bots are working or not. This bot status bot updates every 45 minutes & ru

IDNCoderX 5 Oct 6, 2022
A (probably) working Kik name checker

KikNameChecker !THIS ONLY CHECKS WS2.KIK.COM ENDPOINT! \ Will add user inputted endpoints thing \ A (probably) working Kik name checker Started as a s

insert edgy and cool name 1 Dec 17, 2022
A simple Discord Mass-Ban that's still working with Member Scraper.

Mass-Ban [!] This was made for education / you can use for revenge. Please don't skid it. [!] If you want to use it, please use member scraper before

WoahThatsHot 1 Nov 20, 2021
A Phyton script working for stream twits from twitter by tweepy to mongoDB

twitter-to-mongo A python script that uses the Tweepy library to pull Tweets with specific keywords from Twitter's Streaming API, and then stores the

null 3 Feb 3, 2022
A working selfbot for discord

React Selfbot Yes, for real ⚠ "Maintained" version: https://github.com/AquaSelfBot/AquaSelfbot ⚠ Why am I making this open source? Because can't stop

null 3 Jan 25, 2022