Net::T...Legacy(3pm)

πŸ“¦
version 4.01043 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble

πŸ’– 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 as new in Net::Twitter (iykyk), but it ALSO supports these extra options, obsessed:
    • arrayref_on_error β€” when you set it to 1, instead of being all "here's undef" on an error, the API methods hand you back an empty ARRAY ref 🫢. Defaults to 0.
    • twittervision β€” when you set it to 1, it enables the upade_twittervision call πŸ‘€. Defaults to 0.
  • clone β€” makes a shallow copy of the Net::Twitter object. back in the day, in legacy versions of Net::Twitter, this was the moment β€” it handled concurrent requests (like, say, with LWP::UserAgent::POE). since errors get wrapped in Net::Twitter, every concurrent request needed its own lil object, and clone served 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