The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WebService::Postcodeanywhere::BACS::REST - Perl API for postcodeanywhere BACS Information webservice

SYNOPSIS

use WebService::Postcodeanywhere::BACS::REST;

WebService::Postcodeanywhere::BACS::REST->license_code($license);
WebService::Postcodeanywhere::BACS::REST->account_code($account);

my $details = WebService::Postcodeanywhere::BACS::REST->getBACSFromSortCode($sortcode);

DESCRIPTION

This module provides a simple API to the postcodeanywhere bank information checking webservice through it's REST API.

You will need to register and set up your account with postcodeanywhere, a free demo is available see www.postcodeanywhere.net for details

CLASS METHODS

account_code

Gets/Sets the account code to be used for the webservice, this is required.

You will need to register and set up your account with postcodeanywhere

license_code

Gets/Sets the license code to be used for the webservice, this is required.

You will need to register and set up your account with postcodeanywhere

webservice_url

Gets/Sets the webservice url to be used for requests, this is optional as the default should JustWork(TM)

getBACSFromSortCode

Takes a single argument of the sortcode in dd-dd-dd format.
Returns a hashref of the keys/values returned by the webservice.

my $sortcode = '00-00-00';
my $details = WebService::Postcodeanywhere::BACS::REST->getBACSFromSortCode($sortcode);

EXPORT

None by default.

SEE ALSO

www.postcodeanywhere.net

www.fsite.com

AUTHOR

Aaron Trevena, <aaron@fsite.com>

COPYRIGHT AND LICENSE

Copyright (C) 2005 by Foresite Business Solutions, Ltd

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.5 or, at your option, any later version of Perl 5 you may have available.