NAME
Twilio::Rest::Trusthub::V1::CustomerProfiles - The CustomerProfiles resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
my $customer_profiles = $client->trusthub->v1->customer_profiles->create($friendly_name, $email, $policy_sid, \%options);
for my $customer_profiles ($client->trusthub->v1->customer_profiles->read({}, 20)) {
...
}
my $customer_profiles = $client->trusthub->v1->customer_profiles($sid)->fetch;
$client->trusthub->v1->customer_profiles($sid)->update(\%options);
$client->trusthub->v1->customer_profiles($sid)->delete;
DESCRIPTION
This file holds CustomerProfilesList, CustomerProfilesPage, CustomerProfilesContext and CustomerProfilesInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
CustomerProfilesList
Returned by $client->trusthub->v1->customer_profiles. See also Twilio::ListResource.
create
my $customer_profiles = $client->trusthub->v1->customer_profiles->create($friendly_name, $email, $policy_sid, \%options);
Create a new Customer-Profile. Returns a CustomerProfilesInstance.
The required values are:
$friendly_name-
The string that you assigned to describe the resource.
$email-
The email address that will receive updates when the Customer-Profile resource changes status.
$policy_sid-
The unique string of a policy that is associated to the Customer-Profile resource.
The options are:
status_callback-
The URL we call to inform your application of status changes.
read
my @records = $client->trusthub->v1->customer_profiles->read(\%options, $limit, $page_size);
Retrieve a list of all Customer-Profiles for an account. Returns the records as a list, fetching as many pages as it needs.
The options are:
friendly_name-
The string that you assigned to describe the resource.
policy_sid-
The unique string of a policy that is associated to the Customer-Profile resource.
status-
The verification status of the Customer-Profile resource. One of
draft,pending-review,in-review,twilio-rejectedortwilio-approved.
stream
my $stream = $client->trusthub->v1->customer_profiles->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->trusthub->v1->customer_profiles->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->trusthub->v1->customer_profiles->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->trusthub->v1->customer_profiles->get_context($sid);
Returns a CustomerProfilesContext, and makes no request.
CustomerProfilesPage
A Twilio::Page of CustomerProfilesInstance objects.
records_key
build_instance
Used by Twilio::Page.
CustomerProfilesContext
Returned by $client->trusthub->v1->customer_profiles($sid). It makes no request until one of these methods is called.
fetch
my $customer_profiles = $client->trusthub->v1->customer_profiles($sid)->fetch;
Fetch a specific Customer-Profile instance. Returns a CustomerProfilesInstance.
update
my $customer_profiles = $client->trusthub->v1->customer_profiles($sid)->update(\%options);
Updates a Customer-Profile in an account. Returns a CustomerProfilesInstance.
The options are:
email-
The email address that will receive updates when the Customer-Profile resource changes status.
friendly_name-
The string that you assigned to describe the resource.
status-
One of
draft,pending-review,in-review,twilio-rejectedortwilio-approved. status_callback-
The URL we call to inform your application of status changes.
delete
$client->trusthub->v1->customer_profiles($sid)->delete;
Delete a specific Customer-Profile. Returns true.
customer_profiles_channel_endpoint_assignment
my $list = $object->customer_profiles_channel_endpoint_assignment;
my $context = $object->customer_profiles_channel_endpoint_assignment($sid);
See Twilio::Rest::Trusthub::V1::CustomerProfiles::CustomerProfilesChannelEndpointAssignment.
customer_profiles_entity_assignments
my $list = $object->customer_profiles_entity_assignments;
my $context = $object->customer_profiles_entity_assignments($sid);
See Twilio::Rest::Trusthub::V1::CustomerProfiles::CustomerProfilesEntityAssignments.
customer_profiles_evaluations
my $list = $object->customer_profiles_evaluations;
my $context = $object->customer_profiles_evaluations($sid);
See Twilio::Rest::Trusthub::V1::CustomerProfiles::CustomerProfilesEvaluations.
CustomerProfilesInstance
See also Twilio::InstanceResource.
It has fetch, update, delete, customer_profiles_channel_endpoint_assignment, customer_profiles_entity_assignments and customer_profiles_evaluations, which work as they do on the context.
Its fields are:
- account_sid
-
The SID of the Account that created the Customer-Profile resource.
- 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.
-
The email address that will receive updates when the Customer-Profile resource changes status.
- errors
-
The error codes associated with the rejection of the Customer-Profile.
- friendly_name
-
The string that you assigned to describe the resource.
- links
-
The URLs of the Assigned Items of the Customer-Profile resource.
- policy_sid
-
The unique string of a policy that is associated to the Customer-Profile resource.
- sid
-
The unique string that we created to identify the Customer-Profile resource.
- status
-
One of
draft,pending-review,in-review,twilio-rejectedortwilio-approved. - status_callback
-
The URL we call to inform your application of status changes.
- url
-
The absolute URL of the Customer-Profile resource.
- valid_until
-
The date and time in GMT in ISO 8601 format when the resource will be valid until. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.
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.