man > Net::Twitter::OAuth(3pm)

📝 NAME

Net::Twitter::OAuth - Net::Twitter with 'Legacy' and 'OAuth' roles for backwards compatibility

🚀 Quick Reference

Use CaseCommandDescription
🔄 Legacy OAuth object (deprecated)Net::Twitter::OAuth->new(consumer_key => $key, consumer_secret => $secret)Creates instance with Legacy and OAuth traits; backwards compatibility only
✅ Modern OAuth REST APINet::Twitter->new(traits => [qw/API::RESTv1_1 OAuth/])Recommended replacement – REST API with OAuth, exceptions on error
⚠️ Wrapped error handlingNet::Twitter->new(traits => [qw/API::RESTv1_1 WrapError/])REST API with OAuth, errors accessible via $nt->get_error
🔄 Legacy idiom migrationNet::Twitter->new(traits => [qw/Legacy OAuth/])Preserves old Net::Twitter idioms while using OAuth

📌 VERSION

version 4.01043

💻 SYNOPSIS

use Net::Twitter;

my $nt = Net::Twitter::OAuth->new(consumer_key => $key, consumer_secret => $secret);

📖 DESCRIPTION

This module simply creates an instance of Net::Twitter with the Legacy and OAuth traits applied. It is provided as a transparent backwards compatibility layer for earlier versions of Net::Twitter::OAuth which subclassed Net::Twitter.

See Net::Twitter and Net::Twitter::Role::OAuth for full documentation.

⚠️ DEPRECATION NOTICE

This module is deprecated. Use Net::Twitter instead.

use Net::Twitter;

# Just the REST API; exceptions thrown on error
$nt = Net::Twitter->new(traits => [qw/API::RESTv1_1 OAuth/]);

# Just the REST API; errors wrapped - use $nt->get_error
$nt = Net::Twitter->new(traits => [qw/API::RESTv1_1 WrapError/]);

# Or, for code that uses legacy Net::Twitter idioms
$nt = Net::Twitter->new(traits => [qw/Legacy OAuth/]);

🛠️ METHODS

🔗 SEE ALSO

👥 AUTHORS

⚖️ LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

Net::Twitter::OAuth(3pm)
📝 NAME 🚀 Quick Reference 📌 VERSION 💻 SYNOPSIS 📖 DESCRIPTION ⚠️ DEPRECATION NOTICE 🛠️ METHODS 🔗 SEE ALSO 👥 AUTHORS ⚖️ LICENSE

Generated by phpman v4.9.29 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-22 00:17 @2600:1f28:365:80b0:d8a5:c3c6:bf94:28c0
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-flash / taotoken.net / www.chedong.com - original format