[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [taler-merchant] branch master updated: doc: fix errors in
From: |
gnunet |
Subject: |
[GNUnet-SVN] [taler-merchant] branch master updated: doc: fix errors in python snippets |
Date: |
Mon, 12 Mar 2018 13:59:44 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository merchant.
The following commit(s) were added to refs/heads/master by this push:
new 5bd3b0c doc: fix errors in python snippets
5bd3b0c is described below
commit 5bd3b0cbd9074eda3117c7e9aa9a25329425d1b6
Author: Florian Dold <address@hidden>
AuthorDate: Mon Mar 12 13:09:09 2018 +0100
doc: fix errors in python snippets
---
doc/merchant-api.content.texi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/doc/merchant-api.content.texi b/doc/merchant-api.content.texi
index fa1f7f5..283fa48 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
--
To stop receiving notification emails like this one, please contact
address@hidden
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [taler-merchant] branch master updated: doc: fix errors in python snippets,
gnunet <=