WWW::PipeViewer::Videos - videos handler.

NAME

WWW::PipeViewer::Videos - videos handler.

SYNOPSIS

use WWW::PipeViewer;
my $obj = WWW::PipeViewer->new(%opts);
my $info = $obj->video_details($videoID);

SUBROUTINES/METHODS

Get popular videos from a category ID.

videos_details($id, $part)

Get info about a videoID, such as: channelId, title, description, tags, and categoryId.

Available values for part are: id, snippet, contentDetails player, statistics, status and topicDetails.

$part string can contain more values, comma-separated.

Example:

part => 'snippet,contentDetails,statistics'

When $part is undef, it defaults to snippet.

Return details

Each function returns a HASH ref, with a key called 'results', and another key, called 'url'.

The 'url' key contains a string, which is the URL for the retrieved content.

The 'results' key contains another HASH ref with the keys 'etag', 'items' and 'kind'. From the 'results' key, only the 'items' are relevant to us. This key contains an ARRAY ref, with a HASH ref for each result. An example of the item array's content are shown below.

AUTHOR

Trizen, <echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc WWW::PipeViewer::Videos

LICENSE AND COPYRIGHT

Copyright 2013-2015 Trizen.

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 https://dev.perl.org/licenses/ for more information.

 WWW::PipeViewer::Videos - videos handler.