Answer the question
In order to leave comments, you need to log in
Authorization via QIWI API token?
I'm reading the documentation developer.qiwi.com/qiwiwallet/
And I can't figure out how to authorize using a token
. Are there any examples? php/python
Poke your nose please
On the github I found a ready-made library for working with the kiwi api, but the documentation is in English and nothing is clear ..
Answer the question
In order to leave comments, you need to log in
Requests for Python is a good solution.
The token must be passed in the header. Sample code for Python 3, how to get the balance status of a token:
import requests
import json
api_access_token = '' # токен можно получить здесь https://qiwi.com/api
s = requests.Session()
#s.headers['Accept']= 'application/json'
s.headers['authorization'] = 'Bearer ' + api_access_token
b = s.get('https://edge.qiwi.com/funding-sources/v1/accounts/current')
print(json.loads(b.text))
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question