gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[libeufin] 02/04: make CLI send C52


From: gnunet
Subject: [libeufin] 02/04: make CLI send C52
Date: Wed, 22 Jan 2020 22:09:23 +0100

This is an automated email from the git hooks/post-receive script.

marcello pushed a commit to branch master
in repository libeufin.

commit 1d3c9aa738e8801750bc899efe968500aaaeb6ba
Author: Marcello Stanisci <address@hidden>
AuthorDate: Wed Jan 22 20:37:34 2020 +0100

    make CLI send C52
---
 sandbox/src/main/python/libeufin-cli | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/sandbox/src/main/python/libeufin-cli 
b/sandbox/src/main/python/libeufin-cli
index 11fe518..b36d2cd 100755
--- a/sandbox/src/main/python/libeufin-cli
+++ b/sandbox/src/main/python/libeufin-cli
@@ -129,6 +129,26 @@ def tst(obj, customer_id):
     print(resp.content.decode("utf-8"))
 
 
+
+@ebics.command(help="send C52 message")
+@click.pass_obj
+@click.option(
+    "--customer-id",
+    help="numerical ID of the customer at the Nexus",
+    required=False,
+    default=1)
+def c52(obj, customer_id):
+    
+    url = urljoin(obj["base_url"], 
"/ebics/subscribers/{}/sendC52".format(customer_id))
+    try:
+        resp = post(url, json=dict(start="01-01-1970", end="31-12-2020"))
+    except Exception:
+        print("Could not reach the bank")
+        return
+
+    print(resp.content.decode("utf-8"))
+
+
 @ebics.command(help="send INI message")
 @click.pass_obj
 @click.option(

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]