1Net::Twitter::OAuth(3)User Contributed Perl DocumentationNet::Twitter::OAuth(3)
2
3
4

NAME

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

VERSION

10       version 4.01043
11

SYNOPSIS

13         use Net::Twitter;
14
15         my $nt = Net::Twitter::OAuth->new(consumer_key => $key, consumer_secret => $secret);
16

DESCRIPTION

18       This module simply creates an instance of "Net::Twitter" with the
19       "Legacy" and "OAuth" traits applied.  It is provided as a transparent
20       backwards compatibility layer for earlier versions of
21       Net::Twitter::OAuth which subclassed Net::Twitter.
22
23       See Net::Twitter and Net::Twitter::Role::OAuth for full documentation.
24

DEPRECATION NOTICE

26       This module is deprecated.  Use Net::Twitter instead.
27
28           use Net::Twitter;
29
30           # Just the REST API; exceptions thrown on error
31           $nt = Net::Twitter->new(traits => [qw/API::RESTv1_1 OAuth/]);
32
33           # Just the REST API; errors wrapped - use $nt->get_error
34           $nt = Net::Twitter->new(traits => [qw/API::RESTv1_1 WrapError/]);
35
36           # Or, for code that uses legacy Net::Twitter idioms
37           $nt = Net::Twitter->new(traits => [qw/Legacy OAuth/]);
38

METHODS

40       new Creates a "Net::Twitter" object with the "Legacy" and "OAuth"
41           traits.  See "new" in Net::Twitter for "new" options.
42

SEE ALSO

44       Net::Twitter, Net::Twitter::Role::OAuth
45

AUTHORS

47       Marc Mims <marc@questright.com> Tatsuhiko Miyagawa
48       <miyagawa@bulknews.net>
49

LICENSE

51       This library is free software; you can redistribute it and/or modify it
52       under the same terms as Perl itself.
53
54
55
56perl v5.30.1                      2020-01-30            Net::Twitter::OAuth(3)
Impressum