NAME
Twilio::Rest::IpMessaging::V1::Service::Channel - The Channel resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $channel = $client->ip_messaging->v1->services($service_sid)->channels->create(\%options);
for my $channel ($client->ip_messaging->v1->services($service_sid)->channels->read({}, 20)) {
...
}
my $channel = $client->ip_messaging->v1->services($service_sid)->channels($sid)->fetch;
$client->ip_messaging->v1->services($service_sid)->channels($sid)->update(\%options);
$client->ip_messaging->v1->services($service_sid)->channels($sid)->delete;
DESCRIPTION
This file holds ChannelList, ChannelPage, ChannelContext and ChannelInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ChannelList
Returned by $client->ip_messaging->v1->services($service_sid)->channels. See also Twilio::ListResource.
create
my $channel = $client->ip_messaging->v1->services($service_sid)->channels->create(\%options);
Returns a ChannelInstance.
The options are:
attributes-
No description in the specification.
friendly_name-
No description in the specification.
type-
One of
publicorprivate. unique_name-
No description in the specification.
read
my @records = $client->ip_messaging->v1->services($service_sid)->channels->read(\%options, $limit, $page_size);
Returns the records as a list, fetching as many pages as it needs.
The options are:
type-
One of
publicorprivate. An array reference.
stream
my $stream = $client->ip_messaging->v1->services($service_sid)->channels->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->ip_messaging->v1->services($service_sid)->channels->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->ip_messaging->v1->services($service_sid)->channels->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->ip_messaging->v1->services($service_sid)->channels->get_context($sid);
Returns a ChannelContext, and makes no request.
ChannelPage
A Twilio::Page of ChannelInstance objects.
records_key
build_instance
Used by Twilio::Page.
ChannelContext
Returned by $client->ip_messaging->v1->services($service_sid)->channels($sid). It makes no request until one of these methods is called.
fetch
my $channel = $client->ip_messaging->v1->services($service_sid)->channels($sid)->fetch;
Returns a ChannelInstance.
update
my $channel = $client->ip_messaging->v1->services($service_sid)->channels($sid)->update(\%options);
Returns a ChannelInstance.
The options are:
attributes-
No description in the specification.
friendly_name-
No description in the specification.
unique_name-
No description in the specification.
delete
$client->ip_messaging->v1->services($service_sid)->channels($sid)->delete;
Returns true.
invites
my $list = $object->invites;
my $context = $object->invites($sid);
See Twilio::Rest::IpMessaging::V1::Service::Channel::Invite.
members
my $list = $object->members;
my $context = $object->members($sid);
See Twilio::Rest::IpMessaging::V1::Service::Channel::Member.
messages
my $list = $object->messages;
my $context = $object->messages($sid);
See Twilio::Rest::IpMessaging::V1::Service::Channel::Message.
ChannelInstance
See also Twilio::InstanceResource.
It has fetch, update, delete, invites, members and messages, which work as they do on the context.
Its fields are:
- account_sid
-
No description in the specification.
- attributes
-
No description in the specification.
- created_by
-
No description in the specification.
- date_created
-
A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- friendly_name
-
No description in the specification.
- links
-
No description in the specification.
- members_count
-
No description in the specification.
- messages_count
-
No description in the specification.
- service_sid
-
No description in the specification.
- sid
-
No description in the specification.
- type
-
One of
publicorprivate. - unique_name
-
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.