NAME
Twilio::Rest::Api::V2010::Account::Recording::AddOnResult::Payload - The Payload resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $payload ($client->recordings($reference_sid)->add_on_results($add_on_result_sid)->payloads->read({}, 20)) {
...
}
my $payload = $client->recordings($reference_sid)->add_on_results($add_on_result_sid)->payloads($sid)->fetch;
$client->recordings($reference_sid)->add_on_results($add_on_result_sid)->payloads($sid)->delete;
DESCRIPTION
A single Add-on results' payload
This file holds PayloadList, PayloadPage, PayloadContext and PayloadInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
PayloadList
Returned by $client->recordings($reference_sid)->add_on_results($add_on_result_sid)->payloads. See also Twilio::ListResource.
read
my @records = $client->recordings($reference_sid)->add_on_results($add_on_result_sid)->payloads->read(\%options, $limit, $page_size);
Retrieve a list of payloads belonging to the AddOnResult. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->recordings($reference_sid)->add_on_results($add_on_result_sid)->payloads->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->recordings($reference_sid)->add_on_results($add_on_result_sid)->payloads->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->recordings($reference_sid)->add_on_results($add_on_result_sid)->payloads->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->recordings($reference_sid)->add_on_results($add_on_result_sid)->payloads->get_context($sid);
Returns a PayloadContext, and makes no request.
PayloadPage
A Twilio::Page of PayloadInstance objects.
records_key
build_instance
Used by Twilio::Page.
PayloadContext
Returned by $client->recordings($reference_sid)->add_on_results($add_on_result_sid)->payloads($sid). It makes no request until one of these methods is called.
fetch
my $payload = $client->recordings($reference_sid)->add_on_results($add_on_result_sid)->payloads($sid)->fetch;
Fetch an instance of a result payload. Returns a PayloadInstance.
delete
$client->recordings($reference_sid)->add_on_results($add_on_result_sid)->payloads($sid)->delete;
Delete a payload from the result along with all associated Data. Returns true.
data
my $context = $object->data;
See Twilio::Rest::Api::V2010::Account::Recording::AddOnResult::Payload::Data.
PayloadInstance
See also Twilio::InstanceResource.
It has fetch, delete and data, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the Recording AddOnResult Payload resource.
- add_on_configuration_sid
-
The SID of the Add-on configuration.
- add_on_result_sid
-
The SID of the AddOnResult to which the payload belongs.
- add_on_sid
-
The SID of the Add-on to which the result belongs.
- content_type
-
The MIME type of the payload.
- date_created
-
The date and time in GMT that the resource was created specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date and time in GMT that the resource was last updated specified in RFC 2822 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- label
-
The string provided by the vendor that describes the payload.
- reference_sid
-
The SID of the recording to which the AddOnResult resource that contains the payload belongs.
- sid
-
The unique string that that we created to identify the Recording AddOnResult Payload resource.
- subresource_uris
-
A list of related resources identified by their relative URIs.
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.