| Finance-Bank-HSBC documentation | view source | Contained in the Finance-Bank-HSBC distribution. |
Finance::Bank::HSBC - Check your HSBC bank accounts from Perl
use Finance::Bank::HSBC;
my @accounts = Finance::Bank::HSBC->check_balance(
bankingid => "IBxxxxxxxxxx",
seccode => "xxxxxx",
dateofbirth => "ddmmyy"
);
foreach (@accounts) {
printf "%25s : %13s / %18s : GBP %8.2f\n",
$_->{name}, $_->{type}, $_->{account}, $_->{balance};
}
This module provides a rudimentary interface to the HSBC online
banking system at https://www.ebank.hsbc.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(bankingid => $u, seccode => $p, dateofbirth => $d)
Return an array of account hashes, one for each of your bank accounts.
$ac->name
$ac->type
$ac->account
$ac->balance
Return the account owner's name, account type (eg. 'STUDENT A/C'), account number, and 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, upon which most of this code
is based, Andy Lester (and Skud, by continuation) for WWW::Mechanize, Gisle
Aas for HTML::TokeParser, Leon Cowle for updated login code after HSBC
changed their HTML.
Chris Ball chris@cpan.org
| Finance-Bank-HSBC documentation | view source | Contained in the Finance-Bank-HSBC distribution. |