Can I get the history of recent payments to qiwi through the urllib2 module? I tried to do this:
import urllib import urllib2 import json token = 'токен' login = 'номер' parameters = {'rows': '1'} params = urllib.urlencode(parameters) request = urllib2.Request('https://edge.qiwi.com/payment-history/v1/persons/'+login+'/payments', params) request.add_header('Authorization', 'Bearer ' + token) try: urllib2.urlopen(request) except Exception, e: print e.code print e.read() But I get it:
{"serviceName":"payment-history","errorCode":"http.method.not.supported","userMessage":"Method is not supported","dateTime":"2018-08-06T18:09:11.665+03:00","traceId":"08fcf12f42774ae9"}