M
M
MaxEpt2017-01-19 15:57:08
Python
MaxEpt, 2017-01-19 15:57:08

How to sign a request in python?

Hello. We implement the mws protocol from Yandex, the repeatCardPayment method ( https://tech.yandex.ru/money/doc/payment-solution/
... ?
requests.post(' https://kennethreitz.org
', cert=('/path/client.cert' , '/path/client.key')) doesn't help. password. Apparently it needs to be specified in what parameter, I can’t find it in the dock ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sim3x, 2017-01-19
@sim3x

docs.python-requests.org/en/master/user/advanced/#...

s = requests.Session()
s.cert = '/path/client.cert'

Password can only be done with interactive console input or with hacks or with pycurl
https://github.com/kennethreitz/requests/issues/15...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question