voipms-python/voipms/api/dids/sms.py

17 lines
468 B
Python
Raw Normal View History

class SMS():
def __init__(self, base):
self.method = ""
self.base = base
2020-03-17 02:58:09 +00:00
def fetch(self, params={}):
self.method = "getSMS"
return self.base.request(self.method, params=params)
def create(self, params={}):
self.method = "sendSMS"
return self.base.request(self.method, params=params)
def set(self, params={}):
self.method = "setSMS"
2022-07-06 04:15:43 +00:00
return self.base.request(self.method, params=params)