wrote out some logic to get information about numbers
This commit is contained in:
parent
0107ed6e84
commit
8d73e7e779
1 changed files with 14 additions and 0 deletions
14
app/did.py
Normal file
14
app/did.py
Normal file
|
@ -0,0 +1,14 @@
|
|||
from voipms.api import Client
|
||||
|
||||
def get_numbers(client):
|
||||
params = {
|
||||
}
|
||||
did_info = client.dids.fetch(params=params)
|
||||
info = []
|
||||
for did in did_info["dids"]:
|
||||
desired_did_info = {"mms_available":None,"sms_available":None,"did":None}
|
||||
for key in did:
|
||||
if key in desired_did_info:
|
||||
desired_did_info[key] = did[key]
|
||||
info.append(desired_did_info)
|
||||
return info
|
Loading…
Reference in a new issue