Implement updating network registration
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user