NAME
Twilio::CredentialProvider::OrgsCredentialProvider - OAuth 2.0 client credentials of an Organization app
SYNOPSIS
my $client = Twilio::Rest::Client->new(
undef, undef,
{
credential_provider => Twilio::CredentialProvider::OrgsCredentialProvider->new({
client_id => $client_id,
client_secret => $client_secret,
}),
}
);
my $organization = $client->preview_iam->versionless->organization($organization_sid);
for my $user ($organization->users->read) {
...
}
DESCRIPTION
For an OAuth app created under Organization settings, to use the Organization APIs. It works as Twilio::CredentialProvider::ClientCredentialProvider does, with a Twilio::Http::BearerToken::OrgsTokenManager, as in twilio-php and twilio-python.
METHODS
token_manager_class
Returns Twilio::Http::BearerToken::OrgsTokenManager. The other methods are those of Twilio::CredentialProvider::ClientCredentialProvider.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.