1Net::Twitter::Role::LegUasceyr(3C)ontributed Perl DocumeNnetta:t:iTownitter::Role::Legacy(3)
2
3
4

NAME

6       Net::Twitter::Role::Legacy - A Net::Twitter legacy compatibility layer
7       as a Moose role
8

VERSION

10       version 4.01043
11

SYNOPSIS

13           use Net::Twitter;
14
15           my $nt = Net::Twitter->new(
16               username => $username,
17               password => $password,
18               traits   => [qw/Legacy/],
19           );
20
21           my $followers = $nt->followers;
22           if ( !followers ) {
23               warn $nt->http_message;
24           }
25

DESCRIPTION

27       This module provides a Net::Twitter compatibility layer for
28       Net::Twitter.  It pulls in the additional traits: "API::REST",
29       "API::Search", "API::Identica", and "WrapError".
30

METHODS

32       new This method takes the same parameters as "new" in Net::Twitter.  In
33           addition, it also support the options:
34
35           arrayref_on_error
36               When set to 1, on error, rather than returning undef, the API
37               methods will return an empty ARRAY ref.  Defaults to 0.
38
39           twittervision
40               When set to 1, enables the "upade_twittervision" call.
41               Defaults to 0.
42
43       clone
44           Creates a shallow copy of the "Net::Twitter" object.  This was
45           useful, in legacy versions of "Net::Twitter" for handling
46           concurrent requests (for instance with LWP::UserAgent::POE).  Since
47           errors are wrapped in the "Net::Twitter" concurrent requests each
48           needed their own object.  "clone" served that purpose.
49
50           The recommended approach for concurrent requests is to use
51           "Net::Twitter"'s ability throw exceptions, now.
52

SEE ALSO

54       Net::Twitter
55

AUTHOR

57       Marc Mims <marc@questright.com>
58

LICENSE

60       Copyright (c) 2016 Marc Mims
61
62       This library is free software; you can redistribute it and/or modify it
63       under the same terms as Perl itself.
64

DISCLAIMER OF WARRANTY

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.30.0                      2019-07-26     Net::Twitter::Role::Legacy(3)
Impressum