Net::Twitter::OAuth::Simple - A Twitter specific subclass of Net::OAuth::Simple
This is a simple sub-class of Net::OAuth::Simple providing an overridden request_access_token method which accepts an option PIN number parameter for use in Twitter desktop applications.
Net::OAuth::Simple
request_access_token
Accepts the same arguments as Net::OAuth::Simple with an additional, optional, useragent argument. If provided, the useragent should be a LWP::UserAgent or LWP::UserAgent derived class. If not provided, an LWP::UserAgent instance will be created.
useragent
LWP::UserAgent
Request the access token and access token secret for this user.
The user must have authorized this app at the url given by get_authorization_url first.
get_authorization_url
For desktop applications, the Twitter authorization page will present the user with a PIN number. Prompt the user for the PIN number, and pass it as an argument to request_access_token.
Returns the access token and access token secret but also sets them internally so that after calling this method, you can immediately call API methods requiring authentication.
Net::Twitter, Net::Twitter::Role::OAUth, Net::OAuth::Simple
Marc Mims <marc@questright.com>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::Twitter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::Twitter
CPAN shell
perl -MCPAN -e shell install Net::Twitter
For more information on module installation, please visit the detailed CPAN module installation guide.