Answer the question
In order to leave comments, you need to log in
Error with Python requests. Qiwi API?
Faced such a problem.
When I run this code on my computer, everything works, but when I try to run it on my Ubuntu server, an error occurs. Can you please help
import json
import requests
from config import *
session = requests.Session()
session.headers['authorization'] = 'Bearer ' + QIWI_TOKEN
parameters = {'rows': '10'}
h = session.get(
'https://edge.qiwi.com/payment-history/v2/persons/{}/payments'.format(QIWI_NUMBER),
params=parameters)
req = json.loads(h.text)
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