Python Qiwi API Wrapper
Project description
# pyQiwi
Python QIWI API Wrapper
## Установка
`pip install -U qiwipy`
или
`pip install git+https://github.com/mostm/pyqiwi.git`
## Использование
```python
import pyqiwi
wallet = pyqiwi.Wallet(token='', number='79001234567')
```
## Быстрый туториал
#### Получить текущий баланс
```python
print(wallet.balance(643))
```
#### Отправка платежа
```python
payment = wallet.send(id=99, recipient='79001234567', amount=1.11, comment='Привет!')
example = 'Payment is {0}\nRecipient: {1}\nPayment Sum: {2}'.format(
payment.transaction['state']['code'], payment.fields['account'], payment.sum)
print(example)
```
#### Получить комиссию для платежа
```python
commission = wallet.commission(pid=99, recipient='79001234567', amount=1.11)
print(commission.qw_commission.amount)
```
Python QIWI API Wrapper
## Установка
`pip install -U qiwipy`
или
`pip install git+https://github.com/mostm/pyqiwi.git`
## Использование
```python
import pyqiwi
wallet = pyqiwi.Wallet(token='', number='79001234567')
```
## Быстрый туториал
#### Получить текущий баланс
```python
print(wallet.balance(643))
```
#### Отправка платежа
```python
payment = wallet.send(id=99, recipient='79001234567', amount=1.11, comment='Привет!')
example = 'Payment is {0}\nRecipient: {1}\nPayment Sum: {2}'.format(
payment.transaction['state']['code'], payment.fields['account'], payment.sum)
print(example)
```
#### Получить комиссию для платежа
```python
commission = wallet.commission(pid=99, recipient='79001234567', amount=1.11)
print(commission.qw_commission.amount)
```
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
qiwipy-2.0.tar.gz
(9.9 kB
view hashes)
Built Distribution
qiwipy-2.0-py3-none-any.whl
(15.3 kB
view hashes)