Michael Aquilina > WWW-LaQuinta-Returns-0.03 > WWW::LaQuinta::Returns

Download:
WWW-LaQuinta-Returns-0.03.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.03   Source  

NAME ^

WWW::LaQuinta::Returns - Scraper for La Quinta Returns site

SYNOPSIS ^

  use WWW::LaQuinta::Returns;

  my $lq = WWW::LaQuinta::Returns->new(
     account  => 'W123456',
     password => 'opensesame',
  );

  my $points = $lq->balance;
  print "You have $points La Quinta Returns points";

DESCRIPTION ^

This module scrapes the La Quinta Returns website to obtain your reward points balance at the La Quinta hotel chain.

METHODS ^

new

Returns a new WWW::LaQuinta::Returns object.

balance

Returns your La Quinta Returns points balance.

DEPENDENCIES ^

WWW::Mechanize

WHY?! ^

I wanted to write a cronjob that would alert me when my points balance changed or I became eligible for a free night. For an example of such a script, see bin/cron_example.pl.

TO-DO LIST ^

A few other features that I might code at some point. Send me an email if you would find them useful. Oh, and patches are welcome.

BUGS ^

Like all screen-scraping tools, this module is prone to bugs or epic breakage if La Quinta changes their site design. It's not intended for use in production applications.

DISCLAIMER ^

The author of this module is not affiliated in any way with La Quinta Hotels.

Use this scraper like you would a web browser. You wouldn't sit at your computer refreshing the La Quinta website every second, so don't use this module to write a cronjob that does that.

COPYRIGHT AND LICENSE ^

Copyright (C) 2013 Michael Aquilina. All rights reserved.

This code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR ^

Michael Aquilina, aquilina@cpan.org

syntax highlighting: