mirror of
https://github.com/Steffo99/greed.git
synced 2025-03-13 12:17:27 +00:00
remove test setup api methods
This commit is contained in:
parent
d8bd807ee4
commit
ab82544c1e
1 changed files with 0 additions and 22 deletions
|
@ -30,25 +30,3 @@ class Blockonomics:
|
|||
else:
|
||||
print(r.status_code, r.text)
|
||||
return r
|
||||
|
||||
def get_callbacks():
|
||||
api_key = configloader.config["Bitcoin"]["api_key"]
|
||||
url = 'https://www.blockonomics.co/api/address?&no_balance=true&only_xpub=true&get_callback=true'
|
||||
headers = {'Authorization': "Bearer " + api_key}
|
||||
r = requests.get(url, headers=headers)
|
||||
if r.status_code == 200:
|
||||
return r
|
||||
else:
|
||||
return False
|
||||
|
||||
def update_callback(callback_url, xpub):
|
||||
api_key = configloader.config["Bitcoin"]["api_key"]
|
||||
url = 'https://www.blockonomics.co/api/update_callback'
|
||||
headers = {'Authorization': "Bearer " + api_key}
|
||||
data = {'callback':callback_url, 'xpub':xpub}
|
||||
print(data)
|
||||
r = requests.post(url, headers=headers, json = data)
|
||||
if r.status_code == 200:
|
||||
return r
|
||||
else:
|
||||
print(r.status_code, r.text)
|
Loading…
Add table
Reference in a new issue