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
Crypto-trading-simulator - Cryptocurrency trading simulator using Python, Streamlit

Crypto Trading Simulator Run streamlit run main.py Dependency Python 3 streamli

Brad 12 Jul 02, 2022
Termux Pkg

PKG Install Termux All Basic Pkg. Installation : pkg update && pkg upgrade && pkg install python && pkg install python2 && pkg install git && git clon

ɴᴏʙɪᴛᴀシ︎ 1 Oct 28, 2021
A simple Python wrapper for the archive.is capturing service

archiveis A simple Python wrapper for the archive.is capturing service. Installation pipenv install archiveis Python Usage Import it. import archi

PastPages 157 Dec 28, 2022
Url-shortener - A url shortener made in python using the API's from the pyshorteners lib

URL Shortener Um encurtador de link feito em python usando as API's da lib pysho

Spyware 3 Jan 07, 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

3 Jan 25, 2022
Signs API calls to SberCloud.Advanced with AK/SK

sbercloud-api-aksk Signs API calls to SberCloud.Advanced with AK/SK This script is a courtesy of @sadpdtchr Description Sometimes there is a need to m

Peter Predtechensky 1 Nov 30, 2021
Telegram bot to provide Telegram user/group/channel information

Whois-TeLeTiPs Telegram bot to provide Telegram user/group/channel information Deployment Methods Heroku Config Vars API_ID : Telegram API_ID, get it

11 Oct 21, 2022
A program to convert YouTube channel registration information into Json files for ThirdTube.

ThirdTubeImporter A program to convert YouTube channel registration information into Json files for ThirdTube. Usage Japanese https://takeout.google.c

Hidegon 2 Dec 18, 2021
The public discord bot, created by: primitt, further developed by: duino-coin team.

Duino Stats Mini A public Duino-Stats Discord bot. Click this link to invite the bot to your server. License Duino Stats Mini distributed under the MI

primboi 8 Mar 14, 2022
A GitHub Actions repo for tracking the dummies sending free money to Alex Jones + co.

A GitHub Actions repo for tracking the dummies sending free money to Alex Jones + co.

Egarok 2 Jul 20, 2022
An unofficial wrapper for Engineer Man's Piston API

Pistonpy Pistonpy is an API wrapper for the Piston code execution engine by Engineer Man. Key Features Simple modern and efficient Pythonic API using

AalbatrossGuy 4 Jan 03, 2022
A simple API Wrapper for Guilded.

Guildr A simple API Wrapper for Guilded. Frequently updated! I am not a user of Guilded, meaning I do not keep track of new Guilded updates or patches

2 Mar 07, 2022
An Unofficial API for 1337x, Piratebay, Nyaasi, Torlock, Torrent Galaxy, Zooqle, Kickass, Bitsearch, and MagnetDL

An Unofficial API for 1337x, Piratebay, Nyaasi, Torlock, Torrent Galaxy, Zooqle, Kickass, Bitsearch, and MagnetDL

Neeraj Kumar 130 Dec 27, 2022
Hello i am TELEGRAM GROUP MANAGEMENT BOT MY NAME IS Evil-Inside ⚡ i have both amazing modules

Evil-Inside DEMO BOT - Evil-Inside Hello i am TELEGRAM GROUP MANAGEMENT BOT MY NAME IS Evil-Inside ⚡ i have both amazing modules ℂ𝕆ℕ𝕋𝔸ℂ𝕋 𝕄𝔼 𝕆ℕ

PANDITHAN 52 Nov 20, 2022
Discord bot written in discord.py

Orion Discord bot written in discord.py Installation Installation of code is supported for macOS only currently First open the terminal. If incase you

Zeus 3 May 19, 2022
A telegram bot written in Python to fetch random SFW & NSFW anime images

Tsuzumi A telegram bot written in python to fetch both random SFW & NSFW Anime images using nekos.life & waifu.pics API Commands SFW Commands : /

Nisarga Adhikary 3 Oct 12, 2022
Discord-Token-Formatter - A simple script to convert discord tokens from email token to token only format

Discord-Token-Formatter A simple script to convert discord tokens from email:pas

2 Oct 23, 2022
Apprise - Push Notifications that work with just about every platform!

ap·prise / verb To inform or tell (someone). To make one aware of something. Apprise allows you to send a notification to almost all of the most popul

Chris Caron 7.2k Jan 07, 2023
A PowerPacked Version Of Telegram Leech Bot With Modern Easy-To-Use Interface & UI !

FuZionX Leech Bot A Powerful Telegram Leech Bot Modded by MysterySD to directly Leech to Telegram, with Multi Direct Links Support for Enhanced Leechi

MysterySD 28 Oct 09, 2022
Bearer API client for Python

Bearer Python Bearer Python client Installation pip install bearer Usage Get your Bearer Secret Key and integration id from the Dashboard and use the

Bearer 9 Oct 31, 2022