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