Twilio Api - Get number of minutes for a number -


i'm trying total number of minutes outbound calls specific twilio number. twilio account use has dozens of numbers. far i've managed total of minutes numbers haven't found way filter phone number. anny suggestions?

<?php // download library , copy folder containing file. require('../twilio-php-latest/services/twilio.php');  $account_sid = "xxxx"; // twilio account sid $auth_token = "xxxx"; // twilio auth token $client = new services_twilio($account_sid, $auth_token);  $record = $client->account->usage_records->today->getcategory('calls-outbound'); echo $record->usage ; ?> 

i found answer : retrieving stats phone number not possible

while usage api should able supply necessary data use cases, not yet able provide usage phone number.

https://www.twilio.com/help/faq/twilio-basics/how-can-i-see-my-twilio-data


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -