NAME
Twilio::Rest::Api::V2010::Account::ConnectApp - The ConnectApp resource
SYNOPSIS
my $client = Twilio::Rest::Client->new($account_sid, $auth_token);
for my $connect_app ($client->connect_apps->read({}, 20)) {
...
}
my $connect_app = $client->connect_apps($sid)->fetch;
$client->connect_apps($sid)->update(\%options);
$client->connect_apps($sid)->delete;
DESCRIPTION
Twilio Connect apps
This file holds ConnectAppList, ConnectAppPage, ConnectAppContext and ConnectAppInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.
ConnectAppList
Returned by $client->connect_apps. See also Twilio::ListResource.
read
my @records = $client->connect_apps->read(\%options, $limit, $page_size);
Retrieve a list of connect-apps belonging to the account used to make the request. Returns the records as a list, fetching as many pages as it needs.
stream
my $stream = $client->connect_apps->stream(\%options, $limit, $page_size);
Takes the same arguments as "read", and returns a Twilio::Stream.
page
my $page = $client->connect_apps->page(\%options, $page_size, $page_token, $page_number);
Fetches one page, and returns a Twilio::Page.
get_page
my $page = $client->connect_apps->get_page($url);
Fetches the page at a URL given by Twilio.
get_context
my $context = $client->connect_apps->get_context($sid);
Returns a ConnectAppContext, and makes no request.
ConnectAppPage
A Twilio::Page of ConnectAppInstance objects.
records_key
build_instance
Used by Twilio::Page.
ConnectAppContext
Returned by $client->connect_apps($sid). It makes no request until one of these methods is called.
fetch
my $connect_app = $client->connect_apps($sid)->fetch;
Fetch an instance of a connect-app. Returns a ConnectAppInstance.
update
my $connect_app = $client->connect_apps($sid)->update(\%options);
Update a connect-app with the specified parameters. Returns a ConnectAppInstance.
The options are:
-
The URL to redirect the user to after we authenticate the user and obtain authorization to access the Connect App.
company_name-
The company name to set for the Connect App.
-
The HTTP method to use when calling
deauthorize_callback_url. One ofGETorPOST. -
The URL to call using the
deauthorize_callback_methodto de-authorize the Connect App. description-
A description of the Connect App.
friendly_name-
A descriptive string that you create to describe the resource. It can be up to 64 characters long.
homepage_url-
A public URL where users can obtain more information about this Connect App.
permissions-
A comma-separated list of the permissions you will request from the users of this ConnectApp. Can include:
get-allandpost-all. One ofget-allorpost-all. An array reference.
delete
$client->connect_apps($sid)->delete;
Delete an instance of a connect-app. Returns true.
ConnectAppInstance
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 ConnectApp resource.
-
The URL we redirect the user to after we authenticate the user and obtain authorization to access the Connect App.
- company_name
-
The company name set for the Connect App.
-
The HTTP method we use to call
deauthorize_callback_url. One ofGETorPOST. -
The URL we call using the
deauthorize_callback_methodto de-authorize the Connect App. - description
-
The description of the Connect App.
- friendly_name
-
The string that you assigned to describe the resource.
- homepage_url
-
The public URL where users can obtain more information about this Connect App.
- permissions
-
The set of permissions that your ConnectApp requests.
- sid
-
The unique string that that we created to identify the ConnectApp resource.
- uri
-
The URI of the resource, relative to
https://api.twilio.com.
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.