NAME
Twilio::Rest::Trusthub::V1::EndUser - The EndUser resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $end_user = $client->trusthub->v1->end_users->create($friendly_name, $type, \%options);
for my $end_user ($client->trusthub->v1->end_users->read({}, 20)) {
...
}
my $end_user = $client->trusthub->v1->end_users($sid)->fetch;
$client->trusthub->v1->end_users($sid)->update(\%options);
$client->trusthub->v1->end_users($sid)->delete;
DESCRIPTION
This file holds EndUserList, EndUserPage, EndUserContext and EndUserInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
EndUserList
Returned by $client->trusthub->v1->end_users. See also Twilio::ListResource.
create
my $end_user = $client->trusthub->v1->end_users->create($friendly_name, $type, \%options);
Create a new End User. Returns a EndUserInstance.
The required values are:
$friendly_name-
The string that you assigned to describe the resource.
$type-
The type of end user of the Bundle resource - can be
individualorbusiness.
The options are:
attributes-
The set of parameters that are the attributes of the End User resource which are derived End User Types. A hash or array reference, or a string of JSON.
read
my @records = $client->trusthub->v1->end_users->read(\%options, $limit, $page_size);
Retrieve a list of all End User for an account. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->trusthub->v1->end_users->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->trusthub->v1->end_users->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->trusthub->v1->end_users->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->trusthub->v1->end_users->get_context($sid);
Returns a EndUserContext, and makes no request.
EndUserPage
A Twilio::Page of EndUserInstance objects.
records_key
build_instance
Used by Twilio::Page.
EndUserContext
Returned by $client->trusthub->v1->end_users($sid). It makes no request until one of these methods is called.
fetch
my $end_user = $client->trusthub->v1->end_users($sid)->fetch;
Fetch specific End User Instance. Returns a EndUserInstance.
update
my $end_user = $client->trusthub->v1->end_users($sid)->update(\%options);
Update an existing End User. Returns a EndUserInstance.
The options are:
attributes-
The set of parameters that are the attributes of the End User resource which are derived End User Types. A hash or array reference, or a string of JSON.
friendly_name-
The string that you assigned to describe the resource.
delete
$client->trusthub->v1->end_users($sid)->delete;
Delete a specific End User. Returns true.
EndUserInstance
See also Twilio::InstanceResource.
It has fetch, update and delete, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the End User resource.
- attributes
-
The set of parameters that are the attributes of the End Users resource which are listed in the End User Types.
- 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.
- friendly_name
-
The string that you assigned to describe the resource.
- sid
-
The unique string created by Twilio to identify the End User resource.
- type
-
The type of end user of the Bundle resource - can be
individualorbusiness. - url
-
The absolute URL of the End User 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.