14 lines
420 B
Python
14 lines
420 B
Python
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 |