16 lines
323 B
Python
16 lines
323 B
Python
|
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)
|