NAME
Twilio::Rest::Messaging::V1::Service::ChannelSender - The ChannelSender resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $channel_sender = $client->messaging->v1->services($messaging_service_sid)->channel_senders->create($sid);
for my $channel_sender ($client->messaging->v1->services($messaging_service_sid)->channel_senders->read({}, 20)) {
...
}
my $channel_sender = $client->messaging->v1->services($messaging_service_sid)->channel_senders($sid)->fetch;
$client->messaging->v1->services($messaging_service_sid)->channel_senders($sid)->delete;
DESCRIPTION
A Messaging Service resource to read, fetch all Channel Senders associated with a Messaging Service.
This file holds ChannelSenderList, ChannelSenderPage, ChannelSenderContext and ChannelSenderInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ChannelSenderList
Returned by $client->messaging->v1->services($messaging_service_sid)->channel_senders. See also Twilio::ListResource.
create
my $channel_sender = $client->messaging->v1->services($messaging_service_sid)->channel_senders->create($sid);
Returns a ChannelSenderInstance.
The required values are:
read
my @records = $client->messaging->v1->services($messaging_service_sid)->channel_senders->read(\%options, $limit, $page_size);
Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->messaging->v1->services($messaging_service_sid)->channel_senders->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->messaging->v1->services($messaging_service_sid)->channel_senders->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->messaging->v1->services($messaging_service_sid)->channel_senders->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->messaging->v1->services($messaging_service_sid)->channel_senders->get_context($sid);
Returns a ChannelSenderContext, and makes no request.
ChannelSenderPage
A Twilio::Page of ChannelSenderInstance objects.
records_key
build_instance
Used by Twilio::Page.
ChannelSenderContext
Returned by $client->messaging->v1->services($messaging_service_sid)->channel_senders($sid). It makes no request until one of these methods is called.
fetch
my $channel_sender = $client->messaging->v1->services($messaging_service_sid)->channel_senders($sid)->fetch;
Returns a ChannelSenderInstance.
delete
$client->messaging->v1->services($messaging_service_sid)->channel_senders($sid)->delete;
Returns true.
ChannelSenderInstance
See also Twilio::InstanceResource.
It has fetch and delete, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the ChannelSender resource.
- country_code
-
The 2-character ISO Country Code of the number.
- date_created
-
The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- date_updated
-
The date and time in GMT when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
- messaging_service_sid
-
The SID of the Service the resource is associated with.
- sender
-
The unique string that identifies the sender e.g whatsapp:+123456XXXX.
- sender_type
-
A string value that identifies the sender type e.g WhatsApp, Messenger.
- sid
-
The unique string that we created to identify the ChannelSender resource.
- url
-
The absolute URL of the ChannelSender resource.
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.