The direction of the call, if you want to filter results by call direction.
Allowed values: inbound, outbound
from_number optional
The number from which the calls were made, if you want to filter results by source number. You can filter the details by using the exact number or the prefix.
to_number optional
The number to which the calls were made, if you want to filter results by destination called. You can filter the details by using the exact number or the prefix.
## Example for Call List#require'rubygems'require'plivo'includePlivoincludePlivo::Exceptionsapi=RestClient.new("<auth_id>","<auth_token>")beginresponse=api.calls.list_live(from_number: ‘123456789’,to_number: ‘123456789’,call_direction: ‘outbound’)putsresponserescuePlivoRESTError=>eputs'Exception: '+e.messageend
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Example for LiveCall list(functionmain(){'use strict';// If auth id and auth token are not specified, Plivo will fetch them from the environment variables.varclient=newplivo.Client("<auth_id>","<auth_token>")client.calls.listLiveCalls({to_number:"9880156119",from_number:"9880156119",call_direction:"outbound"}).then(function(response){console.log(response);},function(err){console.error(err);});})();
<?php/**
* Example for Call list
*/require'vendor/autoload.php';usePlivo\RestClient;usePlivo\Exceptions\PlivoRestException;$client=newRestClient("<auth_id>","<auth_token>");try{$response=$client->calls->listLive([‘to_number’=>‘123456789’,‘from_number’=>‘123456789’,‘call_direction’=>‘inbound’]);print_r($response);}catch(PlivoRestException$ex){print_r($ex);}
/**
* Example for Live Call List
*/usingSystem;usingSystem.Collections.Generic;usingPlivo;usingPlivo.Exception;namespacePlivoExamples{internalclassProgram{publicstaticvoidMain(string[]args){varapi=newPlivoApi("<auth_id>","<auth_token>");try{varresponse=api.Call.ListLive(callDirection:“Inbound”,fromNumber:“123456789”,toNumber:“123456789”);Console.WriteLine(response);}catch(PlivoRestExceptione){Console.WriteLine("Exception: "+e.Message);}}}}
// Example for LiveCall listpackagemainimport("fmt""github.com/plivo/plivo-go/v7")funcmain(){client,err:=plivo.NewClient("<auth_id>","<auth_token>",&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}response,err:=client.LiveCalls.IDList()iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Printf("Response: %#v\n",response)}
Example Request
1
2
3
4
5
6
7
8
9
10
importplivo,plivoxmlauth_id="Your AUTH_ID"auth_token="Your AUTH_TOKEN"p=plivo.RestAPI(auth_id,auth_token)# Get all live calls
response=p.get_live_calls()printstr(response)
1
2
3
4
5
6
7
8
9
10
11
12
require'rubygems'require'plivo'includePlivoAUTH_ID="Your AUTH_ID"AUTH_TOKEN="Your AUTH_TOKEN"p=RestAPI.new(AUTH_ID,AUTH_TOKEN)# Get all live callsresponse=p.get_live_calls()printresponse
<?phprequire'vendor/autoload.php';usePlivo\RestAPI;$auth_id="Your AUTH_ID";$auth_token="Your AUTH_TOKEN";$p=newRestAPI($auth_id,$auth_token);// Get all Live Calls$response=$p->get_live_calls();print_r($response);?>
// Example for LiveCall listpackagemainimport("fmt""github.com/plivo/plivo-go/v7")funcmain(){client,err:=plivo.NewClient("<auth_id>","<auth_token>",&plivo.ClientOptions{})iferr!=nil{fmt.Print("Error",err.Error())return}response,err:=client.LiveCalls.IDList()iferr!=nil{fmt.Print("Error",err.Error())return}fmt.Printf("Response: %#v\n",response)}
Rate this page
🥳 Thank you! It means a lot to us!
×
Help Us Improve
Thank you so much for rating the page, we would like to get your input
for further improvements!