Answer the question
In order to leave comments, you need to log in
Auth.forbidden QIWI. What to do?
Code:
s = requests.Session()
s.headers['authorization'] = 'Bearer ' + QIWI_TOKEN # токен
parameters = {'rows': 1,} # QIWI ACCOUNT - номер телефона
h = s.get('https://edge.qiwi.com/payment-history/v2/persons/' + QIWI_ACCOUNT + '/payments', params=parameters)
return h.json()
{'serviceName': 'payment-history', 'errorCode': 'auth.forbidden', 'description': 'Access denied', 'userMessage': 'Access denied', 'dateTime': 'date', 'traceId': '68c2...d95f7'}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question