WWW::Oyster - Interface to Oyster Account.
The Oyster card is a form of electronic ticketing used on public transport services within the Greater London area of the United Kingdom. It is promoted by Transport for London and is valid on a number of different travel systems across London including London Underground, buses, the Docklands Light Railway(DLR),London Overground, trams,some river boat services & most National Rail services within the London Fare Zones.
A standard Oyster card is a blue credit-card-sized stored value card which can hold a variety of single tickets, period tickets and travel permits which must be added to the card prior to travel.
The constructor simply expects Oyster account username and password.
use strict; use warnings; use WWW::Oyster; my $username = 'your_user_name'; my $password = 'your_password'; my $oyster = WWW::Oyster->new($username, $password);
Returns the account balance.
use strict; use warnings; use WWW::Oyster; my $username = 'your_user_name'; my $password = 'your_password'; my $oyster = WWW::Oyster->new($username, $password); print $oyster->get_account_balance() . "\n";
Mohammad S Anwar,
<mohammad.anwar at yahoo.com>
Please report any bugs/feature requests to
bug-www-oyster at rt.cpan.org or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-Oyster. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
Copyright 2011 Mohammad S Anwar.
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.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.