0
特定のtwilio番号からのアウトバウンドコールの合計時間を取得しようとしています。私が使っているtwilioアカウントには数十の数字があります。これまでのところ、すべての数字の合計時間は分かりましたが、電話番号でフィルタリングする方法は見つかりませんでした。 Annyの提案?Twilio Api - 番号の分数を取得する
<?php
// Download the library and copy into the folder containing this file.
require('../twilio-php-latest/Services/Twilio.php');
$account_sid = "xxxx"; // Your Twilio account sid
$auth_token = "xxxx"; // Your Twilio auth token
$client = new Services_Twilio($account_sid, $auth_token);
$record = $client->account->usage_records->today->getCategory('calls-outbound');
echo $record->usage ;
?>