Added delete endpoint for sms
This commit is contained in:
parent
be39006ef0
commit
e6ecc715ca
2
setup.py
2
setup.py
|
@ -5,7 +5,7 @@ with open("README.md", "r") as fh:
|
||||||
|
|
||||||
setup(
|
setup(
|
||||||
name="voipms-python",
|
name="voipms-python",
|
||||||
version="0.0.2",
|
version="0.1.0",
|
||||||
description="Python wrapper for the voip.ms REST API",
|
description="Python wrapper for the voip.ms REST API",
|
||||||
long_description=long_description,
|
long_description=long_description,
|
||||||
long_description_content_type="text/markdown",
|
long_description_content_type="text/markdown",
|
||||||
|
|
|
@ -11,6 +11,10 @@ class SMS():
|
||||||
self.method = "sendSMS"
|
self.method = "sendSMS"
|
||||||
return self.base.request(self.method, params=params)
|
return self.base.request(self.method, params=params)
|
||||||
|
|
||||||
|
def delete(self, params={}):
|
||||||
|
self.method = "deleteSMS"
|
||||||
|
return self.base.request(self.method, params=params)
|
||||||
|
|
||||||
def set(self, params={}):
|
def set(self, params={}):
|
||||||
self.method = "setSMS"
|
self.method = "setSMS"
|
||||||
return self.base.request(self.method, params=params)
|
return self.base.request(self.method, params=params)
|
||||||
|
|
Loading…
Reference in New Issue