fix: use friendly_name instead of sid
This commit is contained in:
parent
703b39a3c5
commit
ce3e1e7588
@ -145,7 +145,7 @@ def get_exotel_endpoint(action=None, version="v1"):
|
|||||||
def get_all_exophones():
|
def get_all_exophones():
|
||||||
endpoint = get_exotel_endpoint("IncomingPhoneNumbers", "v2_beta")
|
endpoint = get_exotel_endpoint("IncomingPhoneNumbers", "v2_beta")
|
||||||
response = requests.get(endpoint)
|
response = requests.get(endpoint)
|
||||||
return [phone.get("sid") for phone in response.json().get("incoming_phone_numbers", [])]
|
return [phone.get("friendly_name") for phone in response.json().get("incoming_phone_numbers", [])]
|
||||||
|
|
||||||
|
|
||||||
def get_status_updater_url():
|
def get_status_updater_url():
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user