Net::Twitter::OAuth(3pm)

Net::Twitter::OAuth3pm

Net::twitter with 'legacy' and 'oauth' roles for backwards compatibility

Usage

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

Version

version 4.01043

Overview

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

new

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

Releases

7 releases since Debian 6.0 (Squeeze); the text changed 4 times.

  1. 6.0
  2. 8
  3. 9
  4. 10–11
  5. 12–13

Authors

Marc Mims <[email protected]> Tatsuhiko Miyagawa <[email protected]>

License

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

From libnet-twitter-perl 4.01043-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.