| line | stmt | bran | cond | sub | pod | time | code | 
| 1 |  |  |  |  |  |  |  | 
| 2 |  |  |  |  |  |  | # ABSTRACT: MailboxOrg::API::Context | 
| 3 |  |  |  |  |  |  |  | 
| 4 |  |  |  |  |  |  | # --- | 
| 5 |  |  |  |  |  |  | # This class is auto-generated by bin/get_mailbox_api.pl | 
| 6 |  |  |  |  |  |  | # --- | 
| 7 |  |  |  |  |  |  |  | 
| 8 |  |  |  |  |  |  | use v5.24; | 
| 9 | 2 |  |  | 2 |  | 992 |  | 
|  | 2 |  |  |  |  | 7 |  | 
| 10 |  |  |  |  |  |  | use strict; | 
| 11 | 2 |  |  | 2 |  | 8 | use warnings; | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 34 |  | 
| 12 | 2 |  |  | 2 |  | 8 |  | 
|  | 2 |  |  |  |  | 3 |  | 
|  | 2 |  |  |  |  | 40 |  | 
| 13 |  |  |  |  |  |  | use Moo; | 
| 14 | 2 |  |  | 2 |  | 11 | use Types::Standard qw(Enum Str Int InstanceOf ArrayRef); | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 19 |  | 
| 15 | 2 |  |  | 2 |  | 550 | use API::MailboxOrg::Types qw(HashRefRestricted Boolean); | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 17 |  | 
| 16 | 2 |  |  | 2 |  | 2030 | use Params::ValidationCompiler qw(validation_for); | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 11 |  | 
| 17 | 2 |  |  | 2 |  | 690 |  | 
|  | 2 |  |  |  |  | 4 |  | 
|  | 2 |  |  |  |  | 113 |  | 
| 18 |  |  |  |  |  |  | extends 'API::MailboxOrg::APIBase'; | 
| 19 |  |  |  |  |  |  |  | 
| 20 |  |  |  |  |  |  | with 'MooX::Singleton'; | 
| 21 |  |  |  |  |  |  |  | 
| 22 |  |  |  |  |  |  | use feature 'signatures'; | 
| 23 | 2 |  |  | 2 |  | 10 | no warnings 'experimental::signatures'; | 
|  | 2 |  |  |  |  | 3 |  | 
|  | 2 |  |  |  |  | 161 |  | 
| 24 | 2 |  |  | 2 |  | 9 |  | 
|  | 2 |  |  |  |  | 3 |  | 
|  | 2 |  |  |  |  | 255 |  | 
| 25 |  |  |  |  |  |  | our $VERSION = '1.0.2'; # VERSION | 
| 26 |  |  |  |  |  |  |  | 
| 27 |  |  |  |  |  |  | my %validators = ( | 
| 28 |  |  |  |  |  |  | 'list' => validation_for( | 
| 29 |  |  |  |  |  |  | params => { | 
| 30 |  |  |  |  |  |  | account => { type => Str, optional => 0 }, | 
| 31 |  |  |  |  |  |  |  | 
| 32 |  |  |  |  |  |  | }, | 
| 33 |  |  |  |  |  |  | ), | 
| 34 |  |  |  |  |  |  |  | 
| 35 |  |  |  |  |  |  | ); | 
| 36 |  |  |  |  |  |  |  | 
| 37 |  |  |  |  |  |  |  | 
| 38 |  |  |  |  |  |  | my $validator = $validators{'list'}; | 
| 39 | 0 |  |  | 0 | 1 |  | %params       = $validator->(%params) if $validator; | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
|  | 0 |  |  |  |  |  |  | 
| 40 | 0 |  |  |  |  |  |  | 
| 41 | 0 | 0 |  |  |  |  | my %opt = (needs_auth => 1); | 
| 42 |  |  |  |  |  |  |  | 
| 43 | 0 |  |  |  |  |  | return $self->_request( 'context.list', \%params, \%opt ); | 
| 44 |  |  |  |  |  |  | } | 
| 45 | 0 |  |  |  |  |  |  | 
| 46 |  |  |  |  |  |  |  | 
| 47 |  |  |  |  |  |  | 1; | 
| 48 |  |  |  |  |  |  |  | 
| 49 |  |  |  |  |  |  |  | 
| 50 |  |  |  |  |  |  | =pod | 
| 51 |  |  |  |  |  |  |  | 
| 52 |  |  |  |  |  |  | =encoding UTF-8 | 
| 53 |  |  |  |  |  |  |  | 
| 54 |  |  |  |  |  |  | =head1 NAME | 
| 55 |  |  |  |  |  |  |  | 
| 56 |  |  |  |  |  |  | API::MailboxOrg::API::Context - MailboxOrg::API::Context | 
| 57 |  |  |  |  |  |  |  | 
| 58 |  |  |  |  |  |  | =head1 VERSION | 
| 59 |  |  |  |  |  |  |  | 
| 60 |  |  |  |  |  |  | version 1.0.2 | 
| 61 |  |  |  |  |  |  |  | 
| 62 |  |  |  |  |  |  | =head1 SYNOPSIS | 
| 63 |  |  |  |  |  |  |  | 
| 64 |  |  |  |  |  |  | use API::MailboxOrg; | 
| 65 |  |  |  |  |  |  |  | 
| 66 |  |  |  |  |  |  | my $user     = '1234abc'; | 
| 67 |  |  |  |  |  |  | my $password = '1234abc'; | 
| 68 |  |  |  |  |  |  |  | 
| 69 |  |  |  |  |  |  | my $api      = API::MailboxOrg->new( | 
| 70 |  |  |  |  |  |  | user     => $user, | 
| 71 |  |  |  |  |  |  | password => $password, | 
| 72 |  |  |  |  |  |  | ); | 
| 73 |  |  |  |  |  |  |  | 
| 74 |  |  |  |  |  |  | =head1 METHODS | 
| 75 |  |  |  |  |  |  |  | 
| 76 |  |  |  |  |  |  | =head2 list | 
| 77 |  |  |  |  |  |  |  | 
| 78 |  |  |  |  |  |  | Returns a list of Context-IDs and associated domains | 
| 79 |  |  |  |  |  |  |  | 
| 80 |  |  |  |  |  |  | Available for admin, reseller, account | 
| 81 |  |  |  |  |  |  |  | 
| 82 |  |  |  |  |  |  | Parameters: | 
| 83 |  |  |  |  |  |  |  | 
| 84 |  |  |  |  |  |  | =over 4 | 
| 85 |  |  |  |  |  |  |  | 
| 86 |  |  |  |  |  |  | =item * account | 
| 87 |  |  |  |  |  |  |  | 
| 88 |  |  |  |  |  |  | =back | 
| 89 |  |  |  |  |  |  |  | 
| 90 |  |  |  |  |  |  | returns: array | 
| 91 |  |  |  |  |  |  |  | 
| 92 |  |  |  |  |  |  | $api->context->list(%params); | 
| 93 |  |  |  |  |  |  |  | 
| 94 |  |  |  |  |  |  | =head1 AUTHOR | 
| 95 |  |  |  |  |  |  |  | 
| 96 |  |  |  |  |  |  | Renee Baecker <reneeb@cpan.org> | 
| 97 |  |  |  |  |  |  |  | 
| 98 |  |  |  |  |  |  | =head1 COPYRIGHT AND LICENSE | 
| 99 |  |  |  |  |  |  |  | 
| 100 |  |  |  |  |  |  | This software is Copyright (c) 2022 by Renee Baecker. | 
| 101 |  |  |  |  |  |  |  | 
| 102 |  |  |  |  |  |  | This is free software, licensed under: | 
| 103 |  |  |  |  |  |  |  | 
| 104 |  |  |  |  |  |  | The Artistic License 2.0 (GPL Compatible) | 
| 105 |  |  |  |  |  |  |  | 
| 106 |  |  |  |  |  |  | =cut |