NAME
WWW::OReillyMedia::Store - Interface to the OReilly Media Store.
VERSION
Version 0.01
SYNOPSIS
Objective of this module is to provide an interface to the OReilly online media store. This is just an initial release. I will be adding more functionality really soon.
use WWW::OReillyMedia::Store;
my $store = WWW::OReillyMedia::Store->new();
my $books = $store->get_all_books();
print $books->[0]->as_string();
print "Total Count: [" . $store->book_count() . "]\n"
METHODS
fetch_books()
Fetches books details from OReilly online store realtime. It does so as part of constructor functionality. You DONT really need to do call this explicitly. However it is still there for you to play with it.
search_book()
Search for a book in the book store. NOT YET defined.
book_count()
Returns the total books count in the OReilly online store.
use strict; use warnings;
use WWW::OReillyMedia::Store;
my $store = WWW::OReillyMedia::Store->new();
print "Count: [" . $store->book_count() . "]\n"
get_all_books()
Returns all the books that have been fetched from the OReilly online store. It returs a reference to the list of objects of class WWW::OReillyMedia::Store::Book.
use strict; use warnings;
use WWW::OReillyMedia::Store;
my $store = WWW::OReillyMedia::Store->new();
my $books = $store->get_all_books();
print $books->[0]->as_string();
AUTHOR
Mohammad S Anwar, <mohammad.anwar at yahoo.com>
BUGS
Please report any bugs or feature requests to bug-www-oreillymedia-store at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WWW-OReillyMedia-Store. 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::OReillyMedia::Store
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=WWW-OReillyMedia-Store
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
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.