NAME
Twilio::Rest::Chat::V1::Service::User::UserChannel - The UserChannel resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $user_channel ($client->chat->v1->services($service_sid)->users($user_sid)->user_channels->read({}, 20)) {
...
}
DESCRIPTION
This file holds UserChannelList, UserChannelPage and UserChannelInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
UserChannelList
Returned by $client->chat->v1->services($service_sid)->users($user_sid)->user_channels. See also Twilio::ListResource.
read
my @records = $client->chat->v1->services($service_sid)->users($user_sid)->user_channels->read(\%options, $limit, $page_size);
List all Channels for a given User. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->chat->v1->services($service_sid)->users($user_sid)->user_channels->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->chat->v1->services($service_sid)->users($user_sid)->user_channels->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->chat->v1->services($service_sid)->users($user_sid)->user_channels->get_page($url);
Fetches the page at a URL given by Twilio.
UserChannelPage
A Twilio::Page of UserChannelInstance objects.
records_key
build_instance
Used by Twilio::Page.
UserChannelInstance
See also Twilio::InstanceResource.
Its fields are:
- account_sid
-
The SID of the Account that created the User Channel resource.
- channel_sid
-
The SID of the Channel the resource belongs to.
- last_consumed_message_index
-
The index of the last Message in the Channel that the Member has read.
- links
-
The absolute URLs of the Members, Messages , Invites and, if it exists, the last Message for the Channel.
- member_sid
-
The SID of a Member that represents the User on the Channel.
- service_sid
-
The SID of the Service the resource is associated with.
- status
-
One of
joined,invitedornot_participating. - unread_messages_count
-
The number of unread Messages in the Channel for the User. Note that retrieving messages on a client endpoint does not mean that messages are consumed or read. See Consumption Horizon feature to learn how to mark messages as consumed.
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.