Authen::Simple::Twitter - Simple authentication using Twitter or Identi.ca
Version 0.01
use Authen::Simple::Twitter; # authenticate against Twitter my $twitauth = Authen::Simple::Twitter->new(); if ( $twitauth->authenticate( $username, $password ) ) { # successful Twitter authentication } # authenticate against Identi.ca my $dentauth = Authen::Simple::Twitter->new(identica => 1); if ( $dentauth->authenticate( $username, $password ) ) { # successful Identi.ca authentication }
This method takes a hash of parameters. The following options are valid particularly for this module:
identica
A boolean indicating whether or not to authenticate to Identi.ca instead of Twitter.
See Authen::Simple for other common parameters which are also valid.
Returns true on success and false on failure.
Dan Moore, <dan at moore.cx>
<dan at moore.cx>
Please report any bugs or feature requests to bug-authen-simple-twitter at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Authen-Simple-Twitter. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-authen-simple-twitter at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Authen::Simple::Twitter
You can also look for information at:
Net::Authen::Twitter's github page
http://github.com/mgrdcm/authen-simple-twitter
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Authen-Simple-Twitter
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Authen-Simple-Twitter
CPAN Ratings
http://cpanratings.perl.org/d/Authen-Simple-Twitter
Search CPAN
http://search.cpan.org/dist/Authen-Simple-Twitter/
This module is pretty close to 1 line of code. All the real functionality is in Net::Twitter and Authen::Simple.
Copyright 2009 Dan Moore, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Authen::Simple::Twitter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Authen::Simple::Twitter
CPAN shell
perl -MCPAN -e shell install Authen::Simple::Twitter
For more information on module installation, please visit the detailed CPAN module installation guide.