C
C
cehka2018-01-29 23:01:47
Python
cehka, 2018-01-29 23:01:47

JSON vs Qiwi m balance what to do?

I don't understand how to get qiwi balance through python

import requests
import json

api_access_token = 'агатокенвамздесь' # токен можно получить здесь https://qiwi.com/api
my_login = '+12332112332132' # номер QIWI Кошелька в формате +79991112233

s = requests.Session()
s.headers['authorization'] = 'Bearer ' + api_access_token
parameters = {'rows': '1'}
h = s.get('https://edge.qiwi.com/funding-sources/v1/accounts/current')
print(json.loads(h.text))

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dimonchik, 2018-01-29
@dimonchik2013

application/json you specify?

S
SergeyBaburin, 2018-02-05
@SergeyBaburin

In general, there is a system for automating the work of standard qiwi wallets (the most common ones, even without identification). http://madjack.ru/2016/11/phpqiwiadmin-%d0%bf%d0%b...
You can either set up automatic processing of funds (sending to other wallets, accumulation in banks, etc.) or work through a pleasant and simple JSON API, which is also built into the panel.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question