From 4db77bc1734c952ccddb594292933bbd05646242 Mon Sep 17 00:00:00 2001 From: Aishwarya adyanthaya <91294460+aadyanthaya@users.noreply.github.com> Date: Wed, 31 May 2023 15:35:12 +0100 Subject: [PATCH 1/2] blockonomics secret key for callback URL --- blockonomics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockonomics.py b/blockonomics.py index 1432c39..9013569 100644 --- a/blockonomics.py +++ b/blockonomics.py @@ -83,7 +83,7 @@ def _get_history_for_addresses(self, addresses: list) -> dict: api_key = configloader.user_cfg["Bitcoin"]["api_key"] url = "https://www.blockonomics.co/api/merchant_logs" - body = {"match_callback": f"https://www.blockonomics.co/api/test_callback?secret={Blockonomics._get_secret()}"} + body = {"match_callback": f"{Blockonomics._get_secret()}"} headers = { "Authorization": "Bearer %s" % api_key } r = requests.get( From 5a9150de804bf5cdffd7782f90c2b9c0ab9494f2 Mon Sep 17 00:00:00 2001 From: Aishwarya adyanthaya <91294460+aadyanthaya@users.noreply.github.com> Date: Wed, 31 May 2023 16:08:55 +0100 Subject: [PATCH 2/2] removed string formatting --- blockonomics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blockonomics.py b/blockonomics.py index 9013569..20111b6 100644 --- a/blockonomics.py +++ b/blockonomics.py @@ -83,7 +83,7 @@ def _get_history_for_addresses(self, addresses: list) -> dict: api_key = configloader.user_cfg["Bitcoin"]["api_key"] url = "https://www.blockonomics.co/api/merchant_logs" - body = {"match_callback": f"{Blockonomics._get_secret()}"} + body = {"match_callback": Blockonomics._get_secret()} headers = { "Authorization": "Bearer %s" % api_key } r = requests.get(