WebService::IMDBAPI - Interface to http://imdbapi.org/
version 1.130020
my $imdb = WebService::IMDBAPI->new(); # an array of up to 1 result my $results = $imdbapi->search_by_title('In Brugges', { limit => 1 }); # an WebService::IMDBAPI::Result object my $result = $results->[0]; say $result->title; say $result->plot_simple;
WebService::IMDBAPI is an interface to http://imdbapi.org/.
Creates a new WebService::IMDBAPI object. Takes the following optional parameters:
The user agent to use. Note that the default LWP user agent seems to be blocked. Defaults to Mozilla/5.0.
Mozilla/5.0
The language for the results. Defaults to en-US.
en-US
Searches based on a title. For the options and their defaults, see http://imdbapi.org/#search-by-title.
Some of the most common options are:
Limits the number of results. Defaults to 1.
The plot type you wish the API to return (none, simple or full). Defaults to simple.
The release date type you wish the API to return (simple or full). Defaults to simple.
$title is required. $options are optional.
$title
$options
Returns an array of WebService::IMDBAPI::Result objects.
Searches based on an IMDB ID. For the options and their defaults, see http://imdbapi.org/#search-by-id.
$id is required. $options are optional.
$id
Returns a single WebService::IMDBAPI::Result object.
Andrew Jones <andrew@arjones.co.uk>
This software is copyright (c) 2013 by Andrew Jones.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::IMDBAPI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::IMDBAPI
CPAN shell
perl -MCPAN -e shell install WebService::IMDBAPI
For more information on module installation, please visit the detailed CPAN module installation guide.