gnunet-svn
[Top][All Lists]
Advanced

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

[libeufin] 01/03: provide TST command to the Python CLI.


From: gnunet
Subject: [libeufin] 01/03: provide TST command to the Python CLI.
Date: Mon, 25 Nov 2019 22:08:11 +0100

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

marcello pushed a commit to branch master
in repository libeufin.

commit 611f2a37a9940d2241dea36b23b2a23ebed5324a
Author: Marcello Stanisci <address@hidden>
AuthorDate: Mon Nov 25 16:39:02 2019 +0100

    provide TST command to the Python CLI.
---
 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 0afc57c..64648fc 100755
--- a/sandbox/src/main/python/libeufin-cli
+++ b/sandbox/src/main/python/libeufin-cli
@@ -101,6 +101,26 @@ def backup(obj, customer_id, output_file):
 
     print("Backup stored in {}".format(output_file))
 
+
+@ebics.command(help="send TST message")
+@click.pass_obj
+@click.option(
+    "--customer-id",
+    help="numerical ID of the customer at the Nexus",
+    required=False,
+    default=1)
+def tst(obj, customer_id):
+    
+    url = urljoin(obj["base_url"], 
"/ebics/subscribers/{}/sendTst".format(customer_id))
+    try:
+        resp = post(url)
+    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]