NAME
Twilio::Rest::Api::V2010::Account::Call::Event - The Event resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $event ($client->calls($call_sid)->events->read({}, 20)) {
...
}
DESCRIPTION
API and webhook requests and responses. Contains parameters and TwiML for application control.
This file holds EventList, EventPage and EventInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
EventList
Returned by $client->calls($call_sid)->events. See also Twilio::ListResource.
read
my @records = $client->calls($call_sid)->events->read(\%options, $limit, $page_size);
Retrieve a list of all events for a call. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->calls($call_sid)->events->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->calls($call_sid)->events->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->calls($call_sid)->events->get_page($url);
Fetches the page at a URL given by Twilio.
EventPage
A Twilio::Page of EventInstance objects.
records_key
build_instance
Used by Twilio::Page.
EventInstance
See also Twilio::InstanceResource.
Its fields are:
- request
-
Contains a dictionary representing the request of the call.
- response
-
Contains a dictionary representing the call response, including a list of the call events.
CONSTRUCTORS
new
Objects here come from the methods above, so there is no need to call new directly.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.