View on
MetaCPAN
Christopher Key > WebService-Flixster > WebService::Flixster

Download:
WebService-Flixster-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

NAME ^

WebService::Flixster - OO Perl interface to flixster.com

SYNOPSIS ^

    use WebService::Flixster;

    my $ws = WebService::Flixster->new(cache => 1, cache_exp => "12h");

    my $movie = $ws->search(type => "Movie", tconst => "tt0033467");

    print $movie->title(), ": \n\n";
    print $movie->synopsis(), "\n\n";

METHODS ^

new(%opts)

Constructor.

%opts can contain:

cache - Whether to cache responses. Defaults to true
cache_root - The root dir for the cache. Defaults to tmpdir();
cache_exp - How long to cache responses for. Defaults to "1h"
domain - Domain from which to request data. Defaults to "api.flixster.com"

search(%args)

%args can contain:

type - Resource type: "Movie", "Actor"
id - Flixster id e.g. "10074" (Movie, Actor)
imdbid - IMDB tconst/nconst e.g. "tt0000001", "nm0000002" (Movie, Actor)
syntax highlighting: