|
NAMEWWW::YoutubeViewer::Videos - videos handler.SYNOPSISuse WWW::YoutubeViewer; my $obj = WWW::YoutubeViewer->new(%opts); my $info = $obj->video_details($videoID); SUBROUTINES/METHODSvideos_from_category($category_id)Get videos from a category ID.trending_videos_from_category($category_id)Get popular videos from a category ID.popular_videos($channel_id)Get the most popular videos for a given channel ID.my_likes()Get the videos liked by the authenticated user.my_dislikes()Get the videos disliked by the authenticated user.send_rating_to_video($videoID, $rating)Send rating to a video. $rating can be either 'like' or 'dislike'.like_video($videoID)Like a video. Returns true on success.dislike_video($videoID)Dislike a video. Returns true on success.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 detailsEach 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.
AUTHORTrizen, "<echo dHJpemVuQHByb3Rvbm1haWwuY29tCg== | base64 -d>"SUPPORTYou can find documentation for this module with the perldoc command.perldoc WWW::YoutubeViewer::Videos LICENSE AND COPYRIGHTCopyright 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.
Visit the GSP FreeBSD Man Page Interface. |