Finance::Bank::AllianceAndLeicester - Check your Alliance & Leicester bank accounts from Perl
use Finance::Bank::AllianceAndLeicester; my @accounts = Finance::Bank::AllianceAndLeicester->check_balance( customerid => '01234567', pin => '12345', memorable => 'mybirthplace', phrase => 'my unique phrase' ); foreach (@accounts) { printf("%8s(%20s): GBP %8.2f " . "(Overdraft: GBP %8.2f Available: GBP %8.2f)\n", $_->{account}, $_->{name}, $_->{balance}, $_->{overdraft}, $_->{available_balance}); }
This module provides a rudimentary interface to the Alliance & Leicester online banking system at https://www.mybank.alliance-leicester.co.uk/.
You will need either Crypt::SSLeay or IO::Socket::SSL installed for HTTPS support to work with LWP. This module also depends on WWW::Mechanize and HTML::TokeParser for screen-scraping.
check_balance ( customerid => $c, pin => $p, memorable => $m, phrase => $s )
Return an array of account hashes, one for each of your bank accounts.
The Customer ID is the 8-digit number supplied with your account.
Your 5-digit PIN number.
This is your memorable information, such as your birth place. This is asked for when you first login to your bank account.
Your unique phrase. This is used to make sure we are connecting to the Alliance & Leicester website and that the connection has not been hijacked.
This is created when you first sign up for online access to your account, and can be changed on the Alliance & Leicester internet banking website.
$ac->account $ac->name $ac->balance $ac->overdraft $ac->available_balance
Return the account number, account name (e.g. 'PlusSaver'), account balance, account overdraft limit and available balance as a signed floating point value.
This warning is from Simon Cozens' Finance::Bank::LloydsTSB, and seems just as apt here.
This is code for online banking, and that means your money, and that means BE CAREFUL. You are encouraged, nay, expected, to audit the source of this module yourself to reassure yourself that I am not doing anything untoward with your banking data. This software is useful to me, but is provided under NO GUARANTEE, explicit or implied.
Simon Cozens for Finance::Bank::LloydsTSB and Chris Ball for Finance::Bank::HSBC, upon which most of this code is based. Andy Lester (and Skud, by continuation) for WWW::Mechanize, Gisle Aas for HTML::TokeParser.
* Rewrote to work with most-recent Alliance & Leicester website.
* Reduced PERL version in Makefile.PL to 5.006001 which should solve some installation issues.
* Strip commas (',') from balances.
Originally written by Ian Bissett ian.bissett@tekuiti.co.uk; currently maintained by Simon Dawson tehsi@cpan.org.
To install Finance::Bank::AllianceAndLeicester, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Finance::Bank::AllianceAndLeicester
CPAN shell
perl -MCPAN -e shell install Finance::Bank::AllianceAndLeicester
For more information on module installation, please visit the detailed CPAN module installation guide.