WebService::TVRage - Perl extension for using TVRage's XML Service


WebService-TVRage documentation Contained in the WebService-TVRage distribution.

Index


Code Index:

NAME

Top

WebService::TVRage - Perl extension for using TVRage's XML Service

SYNOPSIS

Top

	use WebService::TVRage::EpisodeListRequest;
	use WebService::TVRage::ShowSearchRequest;
	my $searchReq =   WebService::TVRage::ShowSearchRequest->new();
	my $searchResults = $searchReq->search('Heroes');
	my $heroFromSearch = $searchResults->getShow('Heroes');
	print $heroFromSearch->getLink(), "\n";
	print $heroFromSearch->getCountry(), "\n";
	print $heroFromSearch->getStatus(), "\n";
	my $heroes =  WebService::TVRage::EpisodeListRequest->new( 'episodeID' => $heroFromSearch->getShowID() );
	my $episodeList = $heroes->getEpisodeList();
	print $episodeList->getNumSeasons(), "\n";
	my $episode = $episodeList->getEpisode(1,3);
	print $episode->getTitle(), "\n";
	print $episode->getAirDate(), "\n";
	foreach my $showtitle ($searchResults->getTitleList()) {
        my $show = $searchResults->getShow($showtitle);
                print $show->getLink();
    	}

DESCRIPTION

Top

This module itself doesn't do anything, just a place holder so you can install will 'WebService::TVRage' See the objects for their various functions. The convention of this module is that if requests fail, they return empty strings when strings are requested and undef when objects are requested.

AUTHOR

Top

Kyle Brandt , kyle@kbrandt.com , http://www.kbrandt.com

COPYRIGHT AND LICENSE

Top


WebService-TVRage documentation Contained in the WebService-TVRage distribution.

package WebService::TVRage;

use 5.010000;
use strict;
use warnings;

our $VERSION = '0.11';



1;