NAME
Net::Twitter::OAuth::Simple - A Twitter specific subclass of Net::OAuth::Simple
DESCRIPTION
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.
METHODS
- new
-
Accepts the same arguments as
Net::OAuth::Simple
with an additional, optional,useragent
argument. If provided, theuseragent
should be aLWP::UserAgent
orLWP::UserAgent
derived class. If not provided, anLWP::UserAgent
instance will be created. - request_access_token [PIN]
-
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.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.
SEE ALSO
Net::Twitter, Net::Twitter::Role::OAUth, Net::OAuth::Simple
AUTHOR
Marc Mims <marc@questright.com>
LICENSE
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.