diff --git a/app/sms.py b/app/sms.py new file mode 100644 index 0000000..7f36fe8 --- /dev/null +++ b/app/sms.py @@ -0,0 +1,16 @@ +from voipms.api import Client + +def get_sms(client, did): + params = { + "did":did, + "type":1, + "all_messages":1 + } + return client.dids.sms.fetch(params=params) + +def enable_sms(client, did): + params = { + "did":did, + "enable":1, + } + return client.dids.sms.set(params=params) \ No newline at end of file