| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||
| 2 | package Twilio::Rest::Oauth::V2; | ||
| 3 | |||
| 4 | 4 | ▶ | use 5.016; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 4 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 4 | ▶ | use parent 'Twilio::Version'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 4 | our $VERSION = '2.001'; | |
| 10 | |||
| 11 | 21 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||
| 12 | 21 | my ($class, $domain) = @_; | |
| 13 | 21 | my $self = $class->SUPER::new($domain); | |
| 14 | 21 | $self->{version} = 'v2'; | |
| 15 | 21 | return $self; | |
| 16 | } | ||
| 17 | |||
| 18 | # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client. | ||
| 19 | 1 | ▶ | sub authorize { |
|
Subroutine
authorize: called CC=1 SCAR=0.0
Pod
documented
| |||
| 20 | 1 | my ($self) = @_; | |
| 21 | 1 | require Twilio::Rest::Oauth::V2::Authorize; | |
| 22 | 1 | return Twilio::Rest::Oauth::V2::AuthorizeList->new($self); | |
| 23 | } | ||
| 24 | |||
| 25 | 20 | ▶ | sub token { |
|
Subroutine
token: called CC=1 SCAR=0.0
Pod
documented
| |||
| 26 | 20 | my ($self) = @_; | |
| 27 | 20 | require Twilio::Rest::Oauth::V2::Token; | |
| 28 | 20 | return Twilio::Rest::Oauth::V2::TokenList->new($self); | |
| 29 | } | ||
| 30 | |||
| 31 | 4 | 1; | |
| 32 | |||
| 33 | __END__ | ||