NAME

Authen::Simple::Twitter - Simple authentication using Twitter or Identi.ca

VERSION

Version 0.01

SYNOPSIS

    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
    }

FUNCTIONS

new

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.

authenticate( $username, $password )

Returns true on success and false on failure.

AUTHOR

Dan Moore, <dan at moore.cx>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc Authen::Simple::Twitter

You can also look for information at:

ACKNOWLEDGEMENTS

This module is pretty close to 1 line of code. All the real functionality is in Net::Twitter and Authen::Simple.

COPYRIGHT & LICENSE

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.