wrote out some logic to get information about numbers

This commit is contained in:
anons-voip 2024-06-10 21:08:39 -04:00
parent 0107ed6e84
commit 8d73e7e779

14
app/did.py Normal file
View 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