NAME
Twilio::Rest::Trusthub::V1::EndUserType - The EndUserType resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $end_user_type ($client->trusthub->v1->end_user_types->read({}, 20)) {
...
}
my $end_user_type = $client->trusthub->v1->end_user_types($sid)->fetch;
DESCRIPTION
This file holds EndUserTypeList, EndUserTypePage, EndUserTypeContext and EndUserTypeInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
EndUserTypeList
Returned by $client->trusthub->v1->end_user_types. See also Twilio::ListResource.
read
my @records = $client->trusthub->v1->end_user_types->read(\%options, $limit, $page_size);
Retrieve a list of all End-User Types. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->trusthub->v1->end_user_types->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->trusthub->v1->end_user_types->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->trusthub->v1->end_user_types->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->trusthub->v1->end_user_types->get_context($sid);
Returns a EndUserTypeContext, and makes no request.
EndUserTypePage
A Twilio::Page of EndUserTypeInstance objects.
records_key
build_instance
Used by Twilio::Page.
EndUserTypeContext
Returned by $client->trusthub->v1->end_user_types($sid). It makes no request until one of these methods is called.
fetch
my $end_user_type = $client->trusthub->v1->end_user_types($sid)->fetch;
Fetch a specific End-User Type Instance. Returns a EndUserTypeInstance.
EndUserTypeInstance
See also Twilio::InstanceResource.
It has fetch, which work as they do on the context.
Its fields are:
- fields
-
The required information for creating an End-User. The required fields will change as regulatory needs change and will differ for businesses and individuals.
- friendly_name
-
A human-readable description that is assigned to describe the End-User Type resource. Examples can include first name, last name, email, business name, etc
- machine_name
-
A machine-readable description of the End-User Type resource. Examples can include first_name, last_name, email, business_name, etc.
- sid
-
The unique string that identifies the End-User Type resource.
- url
-
The absolute URL of the End-User Type 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.