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)
|
|
|
|
|
|
|
|
def set(self, params={}):
|
|
|
|
self.method = "setSMS"
|
2020-03-17 02:58:09 +00:00
|
|
|
return self.base.request(self.method, params={})
|