NAME

WWW::AUR::Login - Login to the AUR and manage packages, vote, etc.

SYNOPSIS

my $login = $aurobj->login( 'whoami', 'password' )
    or die 'failed to login as whoami';

# or ...

my $login = eval { WWW::AUR::Login->( 'whoami', 'password' ) };
die 'failed to login as whoami' if $@;

# You can use package names for actions...
$login->adopt( 'my-new-package');
$login->disown( 'not-my-problem' );

# Or package IDs for actions...
$login->vote( 12353 );
$login->unvote( 12353 );

# Or package objects for actions...
$login->notify( WWW::AUR::Package->new( 'interesting-package' ));
$login->unnotify( WWW::AUR::Package->new( 'boring-package' ));

# Flagging packages out of date...
$login->flag( 'out-of-date-package' );
$login->unflag( 'up-to-date-package' );

# Upload a new package file...
$login->upload( '/path/to/package-file.src.tar.gz' );

# Use the inherited WWW::AUR::Maintainer accessors.
my $name     = $login->name;
my @packages = $login->packages;

DESCRIPTION

This module provides an interface for the AUR package maintainer to perform almost any action they could perform on the website. Commenting has not yet been implemented.

WWW::AUR::Login is a sub-class of WWW::AUR::Maintainer.

CONSTRUCTOR

$OBJ = WWW::AUR::Login->new( $USERNAME, $PASSWORD )
Parameters
$USERNAME

The AUR user name to login as.

$PASSWORD

The password needed to login as the specified user.

Errors

The following errors are thrown with die if we were unable to login to the AUR.

Failed to login to AUR: bad username or password
Failed to login to AUR: <LWP error>

If LWP failed to retrieve the page, an HTTP status code and short message is inserted after "Failed to login to AUR:".

SEE ALSO

WWW::AUR

AUTHOR

Justin Davis, <juster at cpan dot org>

BUGS

Please report any bugs or feature requests to bug-www-aur at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-AUR. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SUPPORT

Read the manual first. Send me an email if you still need help.

LICENSE AND COPYRIGHT

Copyright 2010 Justin Davis.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.