line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Twitter::Search; |
2
|
|
|
|
|
|
|
$Net::Twitter::Search::VERSION = '4.01042'; |
3
|
1
|
|
|
1
|
|
939
|
use Moose; |
|
1
|
|
|
|
|
293117
|
|
|
1
|
|
|
|
|
6
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
extends 'Net::Twitter::Core'; |
6
|
|
|
|
|
|
|
with "Net::Twitter::Role::Legacy"; |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
4793
|
no Moose; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
4
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
1; |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
__END__ |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=head1 NAME |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
Net::Twitter::Search - A perl interface to the Twitter Search API |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 VERSION |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
version 4.01042 |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=head1 SYNOPSIS |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
use Net::Twitter; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
$nt = Net::Twitter::Search->new; |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
$tweets = $nt->search('perl_api'); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 DESCRIPTION |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
This module simply creates an instance of C<Net::Twitter> with the C<Legacy> |
35
|
|
|
|
|
|
|
trait for backwards compatibility with prior versions. Consider |
36
|
|
|
|
|
|
|
L<Net::Twitter::Lite> if you need a lighter, non-Moose alternative. |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
See L<Net::Twitter> for full documentation. |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 DEPRECATION NOTICE |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
This module is deprecated. Use L<Net::Twitter> instead. |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
use Net::Twitter; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
# Just the Search API; exceptions thrown on error |
47
|
|
|
|
|
|
|
$nt = Net::Twitter->new(traits => [qw/API::Search/]); |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
# Just the Search API; errors wrapped - use $nt->get_error |
50
|
|
|
|
|
|
|
$nt = Net::Twitter->new(traits => [qw/API::Search WrapError/]); |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
# Or, for code that uses legacy Net::Twitter idioms |
53
|
|
|
|
|
|
|
$nt = Net::Twitter->new(traits => [qw/Legacy/]); |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
$tweets = $nt->search('pot of gold'); |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
=head1 METHODS |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=over 4 |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=item new |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
Creates a C<Net::Twitter> object with the C<Legacy> trait. See |
64
|
|
|
|
|
|
|
L<Net::Twitter/new> for C<new> options. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=back |
67
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
=head1 SEE ALSO |
69
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=over 4 |
71
|
|
|
|
|
|
|
|
72
|
|
|
|
|
|
|
=item L<Net::Twitter> |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
Full documentation. |
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
=back |
77
|
|
|
|
|
|
|
|
78
|
|
|
|
|
|
|
=head1 AUTHORS |
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
Marc Mims <marc@questright.com> |
81
|
|
|
|
|
|
|
Chris Thompson <cpan@cthompson.com> |
82
|
|
|
|
|
|
|
Brenda Wallace <brenda@wallace.net.nz> |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
=head1 LICENSE |
85
|
|
|
|
|
|
|
|
86
|
|
|
|
|
|
|
Copyright (c) 2016 Marc Mims |
87
|
|
|
|
|
|
|
|
88
|
|
|
|
|
|
|
The Twitter API itself, and the description text used in this module is: |
89
|
|
|
|
|
|
|
|
90
|
|
|
|
|
|
|
Copyright (c) 2009 Twitter |
91
|
|
|
|
|
|
|
|
92
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
=head1 DISCLAIMER OF WARRANTY |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY |
97
|
|
|
|
|
|
|
FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN |
98
|
|
|
|
|
|
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES |
99
|
|
|
|
|
|
|
PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER |
100
|
|
|
|
|
|
|
EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
101
|
|
|
|
|
|
|
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE |
102
|
|
|
|
|
|
|
ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH |
103
|
|
|
|
|
|
|
YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL |
104
|
|
|
|
|
|
|
NECESSARY SERVICING, REPAIR, OR CORRECTION. |
105
|
|
|
|
|
|
|
|
106
|
|
|
|
|
|
|
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING |
107
|
|
|
|
|
|
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR |
108
|
|
|
|
|
|
|
REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE |
109
|
|
|
|
|
|
|
LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, |
110
|
|
|
|
|
|
|
OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE |
111
|
|
|
|
|
|
|
THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING |
112
|
|
|
|
|
|
|
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A |
113
|
|
|
|
|
|
|
FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF |
114
|
|
|
|
|
|
|
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF |
115
|
|
|
|
|
|
|
SUCH DAMAGES. |
116
|
|
|
|
|
|
|
|