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

21 lines
597 B
Python
Raw Permalink 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)
2022-12-15 23:27:25 +00:00
def delete(self, params={}):
self.method = "deleteSMS"
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)