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

16 lines
517 B
Python
Raw Normal View History

class Subaccount():
def __init__(self, base):
self.method = ""
self.base = base
def create(self, params={}):
self.method = "createSubAccount"
return self.base.request(self.method, params=params)
def delete(self, params={}):
self.method = "delSubAccount"
return self.base.request(self.method, params=params)
def fetch(self, params={}):
self.method = "getSubAccounts"
return self.base.request(self.method, params=params)