NAME

Twilio::Rest::Content::V1::LegacyContent - The LegacyContent resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

for my $legacy_content ($client->content->v1->legacy_contents->read({}, 20)) {
  ...
}

DESCRIPTION

A Legacy Content resource represents legacy rich messaging content.

This file holds LegacyContentList, LegacyContentPage and LegacyContentInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

LegacyContentList

Returned by $client->content->v1->legacy_contents. See also Twilio::ListResource.

read

my @records = $client->content->v1->legacy_contents->read(\%options, $limit, $page_size);

Retrieve a list of Legacy Contents belonging to the account used to make the request. Returns the records as a list, fetching as many pages as it needs.

stream

my $stream = $client->content->v1->legacy_contents->stream(\%options, $limit, $page_size);

Takes the same arguments as "read", and returns a Twilio::Stream.

page

my $page = $client->content->v1->legacy_contents->page(\%options, $page_size, $page_token, $page_number);

Fetches one page, and returns a Twilio::Page.

get_page

my $page = $client->content->v1->legacy_contents->get_page($url);

Fetches the page at a URL given by Twilio.

LegacyContentPage

A Twilio::Page of LegacyContentInstance objects.

records_key

build_instance

Used by Twilio::Page.

LegacyContentInstance

See also Twilio::InstanceResource.

Its fields are:

account_sid

The SID of the Account that created Content resource.

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.

friendly_name

A string name used to describe the Content resource. Not visible to the end recipient.

language

Two-letter (ISO 639-1) language code (e.g., en) identifying the language the Content resource is in.

legacy_body

The string body field of the legacy content template associated with this Content resource

legacy_template_name

The string name of the legacy content template associated with this Content resource, unique across all template names for its account. Only lowercase letters, numbers and underscores are allowed

sid

The unique string that that we created to identify the Content resource.

types

The Content types (e.g. twilio/text) for this Content resource.

url

The URL of the resource, relative to https://content.twilio.com.

variables

Defines the default placeholder values for variables included in the Content resource. e.g. {"1": "Customer_Name"}.

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.