|
NAMENet::Twitter::Role::AppAuth - OAuth2 Application Only Authentication VERSIONversion 4.01043 SYNOPSIS use Net::Twitter;
my $nt = Net::Twitter->new(
traits => ['API::RESTv1_1', 'AppAuth'],
consumer_key => "YOUR-CONSUMER-KEY",
consumer_secret => "YOUR-CONSUMER-SECRET",
);
$nt->request_token;
my $tweets = $nt->user_timeline({ screen_name => 'Twitter' });
DESCRIPTIONNet::Twitter::Role::OAuth is a Net::Twitter role that provides OAuth authentication instead of the default Basic Authentication. Note that this client only works with APIs that are compatible to OAuth authentication. METHODS
|