Net::T...Legacy(3pm)
π NAME π
ok so Net::Twitter::Role::Legacy β it's a Net::Twitter legacy compatibility layer, but make it a Moose role π no cap, that's literally the whole name.
β¨ VERSION β¨
we're on version 4.01043 bestie, write it down π
πΈ SYNOPSIS πΈ
here's the vibe, copy-paste it and you're golden:
use Net::Twitter;
my $nt = Net::Twitter->new(
username => $username,
password => $password,
traits => [qw/Legacy/],
);
my $followers = $nt->followers;
if ( !followers ) {
warn $nt->http_message;
}
π¦ DESCRIPTION π¦
okay so this module is giving compatibility layer for Net::Twitter β like, it's the friend that still knows all the old inside jokes. It pulls in the extra traits: API::REST, API::Search, API::Identica, and WrapError. that's it, that's the magic β¨
π METHODS π
newβ this one takes all the same parameters asnewinNet::Twitter(iykyk), but it ALSO supports these extra options, obsessed:arrayref_on_errorβ when you set it to1, instead of being all "here'sundef" on an error, the API methods hand you back an empty ARRAY ref π«Ά. Defaults to0.twittervisionβ when you set it to1, it enables theupade_twittervisioncall π. Defaults to0.
cloneβ makes a shallow copy of theNet::Twitterobject. back in the day, in legacy versions ofNet::Twitter, this was the moment β it handled concurrent requests (like, say, withLWP::UserAgent::POE). since errors get wrapped inNet::Twitter, every concurrent request needed its own lil object, andcloneserved that purpose π
but fr fr, the recommended approach for concurrent requests now is to use Net::Twitter's ability to throw exceptions. glow-up behavior, we love to see it π
π SEE ALSO π
Net::Twitter
π AUTHOR π
Marc Mims <marc@questright.com> β the icon, the legend π
π LICENSE π
Copyright (c) 2016 Marc Mims
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
π DISCLAIMER OF WARRANTY π
okay bestie, this part is ALL CAPS and it means business, so pay attention:
BECAUSE THIS SOFTWARE IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE SOFTWARE, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE SOFTWARE "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE SOFTWARE IS WITH YOU. SHOULD THE SOFTWARE PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR CORRECTION.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE SOFTWARE AS PERMITTED BY THE ABOVE LICENSE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE SOFTWARE (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE SOFTWARE TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
and that's the whole page, bestie β¨ this lil gem is perl v5.34.0, dated 2022-06-16, and it lives its best life as Net::T...Legacy(3pm). go forth and slay π
π
π¦ where this page comes from
- debian bookworm: libnet-twitter-perl 4.01043-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnet-twitter-perl 4.01043-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnet-twitter-perl 4.01043-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms