Manpage logo

WWW::PipeViewer::Videos - videos handler.

NAME  SYNOPSIS  SUBROUTINES/METHODS  trending_videos_from_category($category_id)  videos_details($id, $part)  Return details  AUTHOR  SUPPORT  LICENSE AND COPYRIGHT 

NAME

WWW::PipeViewer::Videos − videos handler.

SYNOPSIS

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

SUBROUTINES/METHODS

trending_videos_from_category($category_id)

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.


Updated 2026-06-01 - jenkler.se | uex.se