voipms-python/voipms/api/accounts/subaccount.py

21 lines
632 B
Python
Raw Normal View History

class Subaccount():
def __init__(self, base):
self.method = ""
self.base = base
2020-03-17 02:58:09 +00:00
def create(self, params={}):
self.method = "createSubAccount"
return self.base.request(self.method, params=params)
2020-03-17 02:58:09 +00:00
def delete(self, params={}):
self.method = "delSubAccount"
return self.base.request(self.method, params=params)
2020-03-17 02:58:09 +00:00
def fetch(self, params={}):
self.method = "getSubAccounts"
return self.base.request(self.method, params=params)
def set(self, params={}):
self.method = "setSubAccount"
2020-03-17 02:58:09 +00:00
return self.base.request(self.method, params=params)