| 1 | package WG::API::WoT; | ||
| 2 | |||
| 3 | 1 | ▶ | use 5.014; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 1 | ▶ | use base qw/WG::API/; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | |||
| 8 | =head1 NAME | ||
| 9 | |||
| 10 | WG::API::WoWp - Modules to work with Wargaming.net Public API for World of Warplanes | ||
| 11 | |||
| 12 | =head1 VERSION | ||
| 13 | |||
| 14 | Version v0.05 | ||
| 15 | |||
| 16 | =cut | ||
| 17 | |||
| 18 | 1 | our $VERSION = 'v0.05'; | |
| 19 | |||
| 20 | |||
| 21 | =head1 SYNOPSIS | ||
| 22 | |||
| 23 | Wargaming.net Public API is a set of API methods that provide access to Wargaming.net content, including in-game and game-related content, as well as player statistics. | ||
| 24 | |||
| 25 | This module provide access to WG Public API | ||
| 26 | |||
| 27 | use WG::API::WoT::Account; | ||
| 28 | |||
| 29 | my $wot = WG::API::WoT::Account->new( { application_id => 'demo' } ); | ||
| 30 | ... | ||
| 31 | my $player = $wot->account_info( { account_id => '1' } ); | ||
| 32 | |||
| 33 | |||
| 34 | |||
| 35 | =head1 CONSTRUCTOR | ||
| 36 | |||
| 37 | =head2 new | ||
| 38 | |||
| 39 | Create new object with params. Rerquired application id: http://ru.wargaming.net/developers/documentation/guide/getting-started/ | ||
| 40 | |||
| 41 | Params: | ||
| 42 | |||
| 43 | - application_id * | ||
| 44 | - languare | ||
| 45 | - api_uri | ||
| 46 | |||
| 47 | =cut | ||
| 48 | |||
| 49 | sub _init { | ||
| 50 | 0 | ▶ | my $self = shift; |
|
Subroutine
_init: not called CC=1 SCAR=6.9
| |||
| 51 | |||
| 52 | 0 | $self->{ 'api_uri' } = 'api.worldoftanks.ru/wot'; | |
| 53 | 0 | $self->SUPER::_init(); | |
| 54 | |||
| 55 | 0 | return $self; | |
| 56 | } | ||
| 57 | |||
| 58 | =head1 BUGS | ||
| 59 | |||
| 60 | Please report any bugs or feature requests to C<cynovg at cpan.org>, or through the web interface at L<https://github.com/cynovg/WG-API/issues>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. | ||
| 61 | |||
| 62 | =head1 SUPPORT | ||
| 63 | |||
| 64 | You can find documentation for this module with the perldoc command. | ||
| 65 | |||
| 66 | perldoc WG::API | ||
| 67 | |||
| 68 | You can also look for information at: | ||
| 69 | |||
| 70 | =over 4 | ||
| 71 | |||
| 72 | =item * RT: GitHub's request tracker (report bugs here) | ||
| 73 | |||
| 74 | L<https://github.com/cynovg/WG-API/issues> | ||
| 75 | |||
| 76 | =item * AnnoCPAN: Annotated CPAN documentation | ||
| 77 | |||
| 78 | L<http://annocpan.org/dist/WG-API> | ||
| 79 | |||
| 80 | =item * CPAN Ratings | ||
| 81 | |||
| 82 | L<http://cpanratings.perl.org/d/WG-API> | ||
| 83 | |||
| 84 | =item * Search CPAN | ||
| 85 | |||
| 86 | L<http://search.cpan.org/dist/WG-API/> | ||
| 87 | |||
| 88 | =back | ||
| 89 | |||
| 90 | |||
| 91 | =head1 ACKNOWLEDGEMENTS | ||
| 92 | |||
| 93 | ... | ||
| 94 | |||
| 95 | =head1 SEE ALSO | ||
| 96 | |||
| 97 | WG API Reference L<http://ru.wargaming.net/developers/> | ||
| 98 | |||
| 99 | =head1 AUTHOR | ||
| 100 | |||
| 101 | cynovg , C<< <cynovg at cpan.org> >> | ||
| 102 | |||
| 103 | =head1 LICENSE AND COPYRIGHT | ||
| 104 | |||
| 105 | Copyright 2015 Cyrill Novgorodcev. | ||
| 106 | |||
| 107 | This program is free software; you can redistribute it and/or modify it | ||
| 108 | under the terms of the the Artistic License (2.0). You may obtain a | ||
| 109 | copy of the full license at: | ||
| 110 | |||
| 111 | L<http://www.perlfoundation.org/artistic_license_2_0> | ||
| 112 | |||
| 113 | Any use, modification, and distribution of the Standard or Modified | ||
| 114 | Versions is governed by this Artistic License. By using, modifying or | ||
| 115 | distributing the Package, you accept this license. Do not use, modify, | ||
| 116 | or distribute the Package, if you do not accept this license. | ||
| 117 | |||
| 118 | If your Modified Version has been derived from a Modified Version made | ||
| 119 | by someone other than you, you are nevertheless required to ensure that | ||
| 120 | your Modified Version complies with the requirements of this license. | ||
| 121 | |||
| 122 | This license does not grant you the right to use any trademark, service | ||
| 123 | mark, tradename, or logo of the Copyright Holder. | ||
| 124 | |||
| 125 | This license includes the non-exclusive, worldwide, free-of-charge | ||
| 126 | patent license to make, have made, use, offer to sell, sell, import and | ||
| 127 | otherwise transfer the Package with respect to any patent claims | ||
| 128 | licensable by the Copyright Holder that are necessarily infringed by the | ||
| 129 | Package. If you institute patent litigation (including a cross-claim or | ||
| 130 | counterclaim) against any party alleging that the Package constitutes | ||
| 131 | direct or contributory patent infringement, then this Artistic License | ||
| 132 | to you shall terminate on the date that such litigation is filed. | ||
| 133 | |||
| 134 | Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER | ||
| 135 | AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES. | ||
| 136 | THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR | ||
| 137 | PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY | ||
| 138 | YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR | ||
| 139 | CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR | ||
| 140 | CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE, | ||
| 141 | EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 142 | |||
| 143 | |||
| 144 | =cut | ||
| 145 | |||
| 146 | 1 | 1; # End of WG::API::WoT | |