NAME
Twilio::Rest::Insights::V1::Call - The Call resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $call = $client->insights->v1->calls($sid)->fetch;
DESCRIPTION
This file holds CallList, CallContext and CallInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
CallList
Returned by $client->insights->v1->calls. See also Twilio::ListResource.
get_context
my $context = $client->insights->v1->calls->get_context($sid);
Returns a CallContext, and makes no request.
CallContext
Returned by $client->insights->v1->calls($sid). It makes no request until one of these methods is called.
fetch
my $call = $client->insights->v1->calls($sid)->fetch;
Returns a CallInstance.
annotation
my $context = $object->annotation;
See Twilio::Rest::Insights::V1::Call::Annotation.
summary
my $context = $object->summary;
See Twilio::Rest::Insights::V1::Call::CallSummary.
events
my $list = $object->events;
See Twilio::Rest::Insights::V1::Call::Event.
metrics
my $list = $object->metrics;
See Twilio::Rest::Insights::V1::Call::Metric.
CallInstance
See also Twilio::InstanceResource.
It has fetch, annotation, summary, events and metrics, which work as they do on the context.
Its fields are:
- links
-
No description in the specification.
- sid
-
No description in the specification.
- url
-
No description in the specification.
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.