line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WWW::Marvel; |
2
|
2
|
|
|
2
|
|
26297
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
80
|
|
3
|
2
|
|
|
2
|
|
9
|
use warnings; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
125
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
our $VERSION = '0.03'; |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 NAME |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
WWW::Marvel - A Marvel Comics API |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
=head1 VERSION |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Version 0.03 |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 SYNOPSIS |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
use WWW::Marvel::Config; |
19
|
|
|
|
|
|
|
use WWW::Marvel::Client; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
my $cfg = WWW::Marvel::Config::File->new("my_marvel.conf"); |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
my $client = WWW::Marvel::Client->new({ |
24
|
|
|
|
|
|
|
public_key => $cfg->get_public_key, |
25
|
|
|
|
|
|
|
private_key => $cfg->get_private_key |
26
|
|
|
|
|
|
|
}); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
my $data = $client->characters({ name => 'spider-man' }); |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 DESCRIPTION |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
This module is an interface to Marvel Comics API |
34
|
|
|
|
|
|
|
to "create awesome stuff with the world's greatest comic api". |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
For more information: |
37
|
|
|
|
|
|
|
http://developer.marvel.com/ |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
Remember to keep you private key private and not store it publicly. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Right now this is a work in progress. |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
=head1 USAGE |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
If you wanna query the Marvel Comics API, probably you have to use |
47
|
|
|
|
|
|
|
the WWW::Marvel::Client module. |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=head1 BUGS |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=head1 SUPPORT |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=head1 AUTHOR |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
Simone "SIMOTRONE" Tampieri |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
=head1 COPYRIGHT |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This program is free software; you can redistribute |
66
|
|
|
|
|
|
|
it and/or modify it under the same terms as Perl itself. |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
The full text of the license can be found in the |
69
|
|
|
|
|
|
|
LICENSE file included with this module. |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=head1 SEE ALSO |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
perl(1). |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=cut |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
1; |