NAME
Twilio::Rest::IpMessaging::V2::Service::User - The User resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $user = $client->ip_messaging->v2->services($service_sid)->users->create($identity, \%options);
for my $user ($client->ip_messaging->v2->services($service_sid)->users->read({}, 20)) {
...
}
my $user = $client->ip_messaging->v2->services($service_sid)->users($sid)->fetch;
$client->ip_messaging->v2->services($service_sid)->users($sid)->update(\%options);
$client->ip_messaging->v2->services($service_sid)->users($sid)->delete;
DESCRIPTION
This file holds UserList, UserPage, UserContext and UserInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
UserList
Returned by $client->ip_messaging->v2->services($service_sid)->users. See also Twilio::ListResource.
create
my $user = $client->ip_messaging->v2->services($service_sid)->users->create($identity, \%options);
Returns a UserInstance.
The required values are:
The options are:
attributes-
No description in the specification.
friendly_name-
No description in the specification.
role_sid-
No description in the specification.
x_twilio_webhook_enabled-
The X-Twilio-Webhook-Enabled HTTP request header One of
trueorfalse.
read
my @records = $client->ip_messaging->v2->services($service_sid)->users->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->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->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->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->ip_messaging->v2->services($service_sid)->users->get_context($sid);
Returns a UserContext, and makes no request.
UserPage
A Twilio::Page of UserInstance objects.
records_key
build_instance
Used by Twilio::Page.
UserContext
Returned by $client->ip_messaging->v2->services($service_sid)->users($sid). It makes no request until one of these methods is called.
fetch
my $user = $client->ip_messaging->v2->services($service_sid)->users($sid)->fetch;
Returns a UserInstance.
update
my $user = $client->ip_messaging->v2->services($service_sid)->users($sid)->update(\%options);
Returns a UserInstance.
The options are:
attributes-
No description in the specification.
friendly_name-
No description in the specification.
role_sid-
No description in the specification.
x_twilio_webhook_enabled-
The X-Twilio-Webhook-Enabled HTTP request header One of
trueorfalse.
delete
$client->ip_messaging->v2->services($service_sid)->users($sid)->delete;
Returns true.
user_bindings
my $list = $object->user_bindings;
my $context = $object->user_bindings($sid);
See Twilio::Rest::IpMessaging::V2::Service::User::UserBinding.
user_channels
my $list = $object->user_channels;
my $context = $object->user_channels($channel_sid);
See Twilio::Rest::IpMessaging::V2::Service::User::UserChannel.
UserInstance
See also Twilio::InstanceResource.
It has fetch, update, delete, user_bindings and user_channels, which work as they do on the context.
Its fields are:
- account_sid
-
No description in the specification.
- attributes
-
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.
- identity
-
No description in the specification.
- is_notifiable
-
No description in the specification.
- is_online
-
No description in the specification.
- joined_channels_count
-
No description in the specification.
- links
-
No description in the specification.
- role_sid
-
No description in the specification.
- service_sid
-
No description in the specification.
- sid
-
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.