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

WWW::Oyster - Interface to Oyster Account.

VERSION

Version 0.04

DESCRIPTION

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.

CONSTRUCTOR

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);

METHODS

get_account_balance()

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";

AUTHOR

Mohammad S Anwar, <mohammad.anwar at yahoo.com>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

    perldoc WWW::Oyster

You can also look for information at:

LICENSE AND COPYRIGHT

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.

DISCLAIMER

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.