diff options
author | Florian Dold <florian.dold@gmail.com> | 2018-03-12 13:09:09 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2018-03-12 13:09:29 +0100 |
commit | 5bd3b0cbd9074eda3117c7e9aa9a25329425d1b6 (patch) | |
tree | 94ff697f7562dd51332ef60947a8deb4819ff492 /doc | |
parent | 9b56f3e95fb3d6a80e0ab46b35c779ce01332b0d (diff) |
doc: fix errors in python snippets
Diffstat (limited to 'doc')
-rw-r--r-- | doc/merchant-api.content.texi | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/merchant-api.content.texi b/doc/merchant-api.content.texi index fa1f7f5c..283fa486 100644 --- a/doc/merchant-api.content.texi +++ b/doc/merchant-api.content.texi @@ -292,7 +292,7 @@ curl -i -X POST 'https://backend.demo.taler.net/order' \ >>> order = dict(order=dict(amount="KUDOS:10", ... summary="Donation", ... fulfillment_url="https://example.com/thanks.html")) ->>> requests.post("https://backend.demo.taler.net", data=order, +>>> requests.post("https://backend.demo.taler.net/order", json=order, ... headers={"Authorization": "ApiKey sandbox"}) <Response [200]> @end verbatim @@ -436,7 +436,7 @@ curl -i -X POST 'https://backend.demo.taler.net/refund' \ >>> refund_req = dict(order_id="2018.058.21.46.06-024C85K189H8P", ... refund="KUDOS:10", ... reason="Customer did not like the product") ->>> requests.post("https://backend.demo.taler.net/refund", data=refund_req, +>>> requests.post("https://backend.demo.taler.net/refund", json=refund_req, ... headers={"Authorization": "ApiKey sandbox"}) <Response [200]> @end verbatim @@ -555,7 +555,7 @@ curl -i -X POST 'https://backend.demo.taler.net/tip-authorize' \ >>> tip_req = dict(amount="KUDOS:0.5", ... instance="default", ... justification="User filled out survey") ->>> requests.post("https://backend.demo.taler.net/refund", data=tip_req, +>>> requests.post("https://backend.demo.taler.net/refund", json=tip_req, ... headers={"Authorization": "ApiKey sandbox"}) <Response [200]> @end verbatim |