1Net::Twitter::Search(3)User Contributed Perl DocumentatioNnet::Twitter::Search(3)
2
3
4
6 Net::Twitter::Search - A perl interface to the Twitter Search API
7
9 version 4.01043
10
12 use Net::Twitter;
13
14 $nt = Net::Twitter::Search->new;
15
16 $tweets = $nt->search('perl_api');
17
19 This module simply creates an instance of "Net::Twitter" with the
20 "Legacy" trait for backwards compatibility with prior versions.
21 Consider Net::Twitter::Lite if you need a lighter, non-Moose
22 alternative.
23
24 See Net::Twitter for full documentation.
25
27 This module is deprecated. Use Net::Twitter instead.
28
29 use Net::Twitter;
30
31 # Just the Search API; exceptions thrown on error
32 $nt = Net::Twitter->new(traits => [qw/API::Search/]);
33
34 # Just the Search API; errors wrapped - use $nt->get_error
35 $nt = Net::Twitter->new(traits => [qw/API::Search WrapError/]);
36
37 # Or, for code that uses legacy Net::Twitter idioms
38 $nt = Net::Twitter->new(traits => [qw/Legacy/]);
39
40 $tweets = $nt->search('pot of gold');
41
43 new Creates a "Net::Twitter" object with the "Legacy" trait. See "new"
44 in Net::Twitter for "new" options.
45
47 Net::Twitter
48 Full documentation.
49
51 Marc Mims <marc@questright.com> Chris Thompson <cpan@cthompson.com>
52 Brenda Wallace <brenda@wallace.net.nz>
53
55 Copyright (c) 2016 Marc Mims
56
57 The Twitter API itself, and the description text used in this module
58 is:
59
60 Copyright (c) 2009 Twitter
61
62 This library is free software; you can redistribute it and/or modify it
63 under the same terms as Perl itself.
64
66 BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
67 FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT
68 WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER
69 PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND,
70 EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
71 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE
72 ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH
73 YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL
74 NECESSARY SERVICING, REPAIR, OR CORRECTION.
75
76 IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
77 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
78 REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE LIABLE
79 TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR
80 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
81 SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
82 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
83 FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
84 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
85 DAMAGES.
86
87
88
89perl v5.32.0 2020-07-28 Net::Twitter::Search(3)