import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')

response = client.live_calls.list_ids(from_number=123456789”, to_number=123456789”, call_direction=”Inbound”)
print(response)
{
  "api_id": "c9527676-5839-11e1-86da-6ff39efcb949",
  "calls": [
"eac94337-b1cd-499b-82d1-b39bca50dc31",
"0a70a7fb-168e-4944-a846-4f3f4d2f96f1"
  ]
}

This method lets you retrieve details of all ongoing calls made from an account.

API Endpoint

GET
https://api.plivo.com/v1/Account/{auth_id}/Call/{call_uuid}/?status=live

Arguments

No arguments need to be passed.

Returns

Returns the details of the specific call as a Call object.

import plivo

client = plivo.RestClient('<auth_id>','<auth_token>')

response = client.live_calls.list_ids(from_number=123456789”, to_number=123456789”, call_direction=”Inbound”)
print(response)
{
  "api_id": "c9527676-5839-11e1-86da-6ff39efcb949",
  "calls": [
"eac94337-b1cd-499b-82d1-b39bca50dc31",
"0a70a7fb-168e-4944-a846-4f3f4d2f96f1"
  ]
}