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


Net-Twitter documentation Contained in the Net-Twitter distribution.

Index


Code Index:

NAME

Top

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

SYNOPSIS

Top

  use Net::Twitter;

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

DESCRIPTION

Top

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

Top

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::REST OAuth/]);

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

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

METHODS

Top

new

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

SEE ALSO

Top

Net::Twitter, Net::Twitter::Role::OAuth

AUTHORS

Top

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

LICENSE

Top

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


Net-Twitter documentation Contained in the Net-Twitter distribution.

package Net::Twitter::OAuth;
use Moose;

# use *all* digits for fBSD ports
our $VERSION = '3.17001';
$VERSION = eval $VERSION; # numify for warning-free dev releases

extends  'Net::Twitter::Core';
with map "Net::Twitter::Role::$_", qw/Legacy OAuth/;

no Moose;

__PACKAGE__->meta->make_immutable;

1;

__END__