NAME
Twilio::Rest::IpMessaging::V2::Service::User::UserChannel - The UserChannel resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $user_channel ($client->ip_messaging->v2->services($service_sid)->users($user_sid)->user_channels->read({}, 20)) {
...
}
my $user_channel = $client->ip_messaging->v2->services($service_sid)->users($user_sid)->user_channels($channel_sid)->fetch;
$client->ip_messaging->v2->services($service_sid)->users($user_sid)->user_channels($channel_sid)->update(\%options);
$client->ip_messaging->v2->services($service_sid)->users($user_sid)->user_channels($channel_sid)->delete;
DESCRIPTION
This file holds UserChannelList, UserChannelPage, UserChannelContext and UserChannelInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
UserChannelList
Returned by $client->ip_messaging->v2->services($service_sid)->users($user_sid)->user_channels. See also Twilio::ListResource.
read
my @records = $client->ip_messaging->v2->services($service_sid)->users($user_sid)->user_channels->read(\%options, $limit, $page_size);
Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->ip_messaging->v2->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->ip_messaging->v2->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->ip_messaging->v2->services($service_sid)->users($user_sid)->user_channels->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->ip_messaging->v2->services($service_sid)->users($user_sid)->user_channels->get_context($channel_sid);
Returns a UserChannelContext, and makes no request.
UserChannelPage
A Twilio::Page of UserChannelInstance objects.
records_key
build_instance
Used by Twilio::Page.
UserChannelContext
Returned by $client->ip_messaging->v2->services($service_sid)->users($user_sid)->user_channels($channel_sid). It makes no request until one of these methods is called.
fetch
my $user_channel = $client->ip_messaging->v2->services($service_sid)->users($user_sid)->user_channels($channel_sid)->fetch;
Returns a UserChannelInstance.
update
my $user_channel = $client->ip_messaging->v2->services($service_sid)->users($user_sid)->user_channels($channel_sid)->update(\%options);
Returns a UserChannelInstance.
The options are:
last_consumed_message_index-
No description in the specification.
last_consumption_timestamp-
A string, or an object with an
epochmethod. See "iso8601_date_time" in Twilio::Serialize. notification_level-
One of
defaultormuted.
delete
$client->ip_messaging->v2->services($service_sid)->users($user_sid)->user_channels($channel_sid)->delete;
Returns true.
UserChannelInstance
See also Twilio::InstanceResource.
It has fetch, update and delete, which work as they do on the context.
Its fields are:
- account_sid
-
No description in the specification.
- channel_sid
-
No description in the specification.
- last_consumed_message_index
-
No description in the specification.
- links
-
No description in the specification.
- member_sid
-
No description in the specification.
- notification_level
-
One of
defaultormuted. - service_sid
-
No description in the specification.
- status
-
One of
joined,invitedornot_participating. - unread_messages_count
-
No description in the specification.
- url
-
No description in the specification.
- user_sid
-
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.