| 1 | # Generated by tools/generate.pl from Twilio's OpenAPI specs. Do not edit this file. | ||||||||||
| 2 | package Twilio::Rest::Events::V1; | ||||||||||
| 3 | |||||||||||
| 4 | 3 | ▶ | use 5.016; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 3 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 3 | ▶ | use parent 'Twilio::Version'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 3 | our $VERSION = '2.001'; | |||||||||
| 10 | |||||||||||
| 11 | 25 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 12 | 25 | my ($class, $domain) = @_; | |||||||||
| 13 | 25 | my $self = $class->SUPER::new($domain); | |||||||||
| 14 | 25 | $self->{version} = 'v1'; | |||||||||
| 15 | 25 | return $self; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | # Each of these objects is built on demand, for the reason given in Twilio::Rest::Client. | ||||||||||
| 19 | 2 | ▶ | sub event_types { | ||||||||
|
Subroutine
event_types: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 20 | 2 | my ($self, $type) = @_; | |||||||||
| 21 | 2 | require Twilio::Rest::Events::V1::EventType; | |||||||||
| 22 | 2 | my $list = Twilio::Rest::Events::V1::EventTypeList->new($self); | |||||||||
| 23 | 2 | ▶ | return defined $type ? $list->get_context($type) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 3 | ▶ | sub schemas { | ||||||||
|
Subroutine
schemas: called CC=2 SCAR=7.0
Pod
documented
| |||||||||||
| 27 | 3 | my ($self, $id) = @_; | |||||||||
| 28 | 3 | require Twilio::Rest::Events::V1::Schema; | |||||||||
| 29 | 3 | my $list = Twilio::Rest::Events::V1::SchemaList->new($self); | |||||||||
| 30 | 3 | ▶ | return defined $id ? $list->get_context($id) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | } | ||||||||||
| 32 | |||||||||||
| 33 | 8 | ▶ | sub sinks { | ||||||||
|
Subroutine
sinks: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 34 | 8 | my ($self, $sid) = @_; | |||||||||
| 35 | 8 | require Twilio::Rest::Events::V1::Sink; | |||||||||
| 36 | 8 | my $list = Twilio::Rest::Events::V1::SinkList->new($self); | |||||||||
| 37 | 8 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 38 | } | ||||||||||
| 39 | |||||||||||
| 40 | 12 | ▶ | sub subscriptions { | ||||||||
|
Subroutine
subscriptions: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 41 | 12 | my ($self, $sid) = @_; | |||||||||
| 42 | 12 | require Twilio::Rest::Events::V1::Subscription; | |||||||||
| 43 | 12 | my $list = Twilio::Rest::Events::V1::SubscriptionList->new($self); | |||||||||
| 44 | 12 | ▶ | return defined $sid ? $list->get_context($sid) : $list; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 45 | } | ||||||||||
| 46 | |||||||||||
| 47 | 3 | 1; | |||||||||
| 48 | |||||||||||
| 49 | __END__ | ||||||||||