// Twilio credentials $sid = 'AC52238e1364629657cfedc72c6fcdc232'; $token = 'ab606a004940ee0e47158cb7d7fee329'; $client = new Client($sid, $token); // Date range $startDate = new DateTime("2025-05-01"); $endDate = new DateTime("2025-05-11"); // Fetch call logs $calls = $client->calls->read([     "startTimeAfter" => $startDate,     "startTimeBefore" => $endDate ]); $customMinutes = 0; foreach ($calls as $call) {     if ($call->duration && intval($call->duration) > 10) {         $customMinutes += 1;     } } header('Content-Type: application/json'); echo json_encode(["custom_minutes" => $customMinutes]);