2019-09-03 20:21:52 +00:00
|
|
|
class SMS():
|
|
|
|
def __init__(self, base):
|
|
|
|
self.method = ""
|
|
|
|
self.base = base
|
2020-03-17 02:58:09 +00:00
|
|
|
|
2019-09-03 20:21:52 +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)
|
|
|
|
|
2019-09-03 20:21:52 +00:00
|
|
|
def set(self, params={}):
|
|
|
|
self.method = "setSMS"
|
2022-07-06 04:15:43 +00:00
|
|
|
return self.base.request(self.method, params=params)
|