Acme-SDUM-Renew
view release on metacpan or search on metacpan
lib/Acme/SDUM/Renew.pm view on Meta::CPAN
package Acme::SDUM::Renew;
use warnings;
use strict;
use LWP::UserAgent;
use HTTP::Cookies;
use HTML::Form;
use File::Temp qw/tempfile/;
use Mail::Sender;
use Carp;
=head1 NAME
Acme::SDUM::Renew - Renew your books from www.sdum.uminho.pt
=head1 VERSION
Version 0.02
=cut
our $VERSION = '0.02';
our (@ISA) = qw/Exporter/;
our (@EXPORT) = qw/sdum_renew/;
=head1 SYNOPSIS
This module just exports one function wich is responsible
of renew all your books from SDUM. At the end a report
is sent to an email, so you can manually check (yes, manually!)
if the operation suceeded.
use Acme::SDUM::Renew;
sdum_renew($username, $password, $email, $smtp);
=head1 EXPORT
sdum_renew
=head1 FUNCTIONS
=head2 sdum_renew
This is where the magic happens. This function receives the
following parameters:
=over 4
=item username
Username to SDUM (don't forget to prepend a 'A' in case you are a student like me).
=item password
Your super ultra secret password.
=item email
A valid email address to send the report.
=item smtp [optional]
This argument is optional but should be usefull when Mail::Sender defaults
doesn't suit your network configuration. Just pass here the SMTP where
your email are relayed and everything should go smoothly.
( run in 1.174 second using v1.01-cache-2.11-cpan-0b5f733616e )