[Top][All Lists]

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

[libeufin] branch master updated: extend cli

From: gnunet
Subject: [libeufin] branch master updated: extend cli
Date: Tue, 10 Nov 2020 17:33:59 +0100

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

ms pushed a commit to branch master
in repository libeufin.

The following commit(s) were added to refs/heads/master by this push:
     new 8d176e1  extend cli
8d176e1 is described below

commit 8d176e1e22c8cab4a8c41431002d36a317ac1f14
Author: MS <>
AuthorDate: Tue Nov 10 17:33:54 2020 +0100

    extend cli
 cli/libeufin-cli | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/cli/libeufin-cli b/cli/libeufin-cli
index 4bc0589..0f705c5 100755
--- a/cli/libeufin-cli
+++ b/cli/libeufin-cli
@@ -227,6 +227,17 @@ def list_offered_bank_accounts(obj, connection_name):
+@accounts.command(help="show accounts belonging to calling user")
+def show(obj):
+    url = urljoin(obj.nexus_base_url, "/bank-accounts")
+    try:
+        resp = get(url, auth=auth.HTTPBasicAuth(obj.username, obj.password))
+    except Exception as e:
+        print(f"Could not reach nexus at {url}, error: {e}")
+        return
+    print(resp.content.decode("utf-8"))
 @accounts.command(help="prepare payment debiting 'account-name'")
 @click.option("--credit-iban", help="IBAN that will receive the payment", 
 @click.option("--credit-bic", help="BIC that will receive the payment", 
@@ -247,7 +258,7 @@ def prepare_payment(obj, account_name, credit_iban, 
credit_bic, credit_name,
-        resp = post(url, json=body, auth = 
auth.HTTPBasicAuth(obj.nexus_user_id, obj.nexus_password))
+        resp = post(url, json=body, auth=auth.HTTPBasicAuth(obj.nexus_user_id, 
     except Exception:
         print("Could not reach nexus at " + url)

To stop receiving notification emails like this one, please contact

reply via email to

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