Implement updating network registration

This commit is contained in:
2022-08-13 20:35:25 +01:00
parent b2121913b6
commit 779eb3697c
7 changed files with 169 additions and 52 deletions

View File

@@ -217,3 +217,20 @@ def get_irc_list_info(net):
payload = {}
listinfo = threshold_request(url, payload, method="GET")
return listinfo
def irc_get_unreg(net=None):
if net:
url = f"irc/reg/{net}"
else:
url = "irc/reg"
payload = {}
unreg = threshold_request(url, payload, method="GET")
return unreg
def irc_confirm_accounts(tokens):
url = "irc/reg"
payload = tokens
updated = threshold_request(url, payload, method="PUT")
return updated