voipsms/app/sms.py

16 lines
323 B
Python
Raw Permalink Normal View History

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)