WebSer...:Videos(3pm)
π WebService::YouTube::Videos π
okay bestie, so this is the WebService::YouTube::Videos page from the 3pm manual β like, Perl module docs, but make it a group chat. This one's version 1.0.3 and it's a whole Perl interface to youtube.videos.* and yes, it absolutely slays. π
β¨ NAME β¨
WebService::YouTube::Videos β a Perl interface to youtube.videos.*, no cap. π¦
β¨ VERSION β¨
This doc describes WebService::YouTube::Videos version 1.0.3. Iconic. π
β¨ SYNOPSIS β¨
here's the vibe, bestie:
use WebService::YouTube::Videos;
my $api = WebService::YouTube::Videos->new( { dev_id => YOUR_DEV_ID } );
# Call API youtube.videos.list_featured
my @videos = $api->list_featured;
foreach my $video (@videos) {
# $video->isa('WebService::YouTube::Video');
}
# Call other APIs
my @videos = $api->list_by_user($user);
my @videos = $api->list_by_tag($tag);
my $video = $api->get_details($video_id);
# Parse XML
my @video = $api->parse_xml($xml); # when $xml contains <video_list>
my $video = $api->parse_xml($xml); # when $xml contains <video_details>
like, look at her go. πβ¨
β¨ DESCRIPTION β¨
This is a Perl interface to the YouTube REST API. that's the whole thing, she's a wrapper and she's serving. π
If you want the full lore, go check out Developer APIs at http://youtube.com/dev and Developer API -- REST Interface at http://youtube.com/dev_rest. iykyk. πΈ
β¨ SUBROUTINES/METHODS β¨
π new(\%fields)
Makes a brand-new WebService::YouTube::Videos object and hands it back to you, like a little gift. π«Ά The %fields you pass can contain any of the params listed down in the "ACCESSORS" section.
π parse_xml($xml)
Parses some XML and gives you back the result. $xml needs to be an object that XML::Simple can actually understand β so, like, don't just hand her a random string and expect magic. π
π get_details( $video_id )
Returns a WebService::YouTube::Video object. $video_id is the ID of the video whose details you're trying to get. main character energy, honestly. π
Details live here: http://youtube.com/dev_api_ref?m=youtube.videos.get_details
π list_by_tag( $tag, \%fields )
Returns an array of WebService::YouTube::Video objects. $tag is a keyword string separated by a space. %fields can hold the optional parameters. so many options, we love a flexible queen. π
pageβ1 <= pageper_pageβper_page <= 100(default20)
Details: http://youtube.com/dev_api_ref?m=youtube.videos.list_by_tag
π list_by_user( $user )
Returns an array of WebService::YouTube::Video objects. (The original docs say $tag is a keyword string separated by a space here β yes, really, that's what it says. we're just relaying the lore fr fr. π) %fields can hold optional parameters.
Details: http://youtube.com/dev_api_ref?m=youtube.videos.list_by_user
π list_featured( )
Returns an array of WebService::YouTube::Video objects. the featured ones. the chosen ones. π
Details: http://youtube.com/dev_api_ref?m=youtube.videos.list_featured
β¨ ACCESSORS β¨
dev_idβ your Developer IDuaβ anLWP::UserAgentobject
π DIAGNOSTICS π
dev_id is requiredβ you literally cannot call the YouTube API without a Developer ID. it's required. mandatory. non-negotiable. πinvalid XMLβ the XML isn't a YouTube XML. not the vibe. πunknown responseβ theut_responseis neither<video_list>nor<video_details>. she doesn't know her. π
πΈ CONFIGURATION AND ENVIRONMENT πΈ
WebService::YouTube::Videos requires no configuration files and no environment variables. zero setup, we love a low-maintenance icon. β¨
π¦ DEPENDENCIES π¦
Class::Accessor::Fast, LWP::UserAgent, XML::Simple, WebService::YouTube::Util, WebService::YouTube::Video
π INCOMPATIBILITIES π
None reported. she plays nice with everyone. π«Ά
π₯ BUGS AND LIMITATIONS π₯
No bugs have been reported. periodt. π
But like, if you do find one, or you want a feature, please report bugs or feature requests to bug-webservice-youtube@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=WebService-YouTube. The author gets notified, and then you automatically get notified of progress on your bug as changes get made. that's the deal. π€
π AUTHOR π
Hironori Yoshida <yoshida@cpan.org>
π LICENSE AND COPYRIGHT π
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
okay and for the cute sign-off: this page is from the perl v5.32.0 era, dated 2021-01-07, filed under the WebSer...:Videos(3pm) manual. go forth and list some videos, bestie, you're gonna eat. πβ¨π
π¦ where this page comes from
- debian bookworm: libwebservice-youtube-perl 1.0.3-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libwebservice-youtube-perl 1.0.3-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu jammy: libwebservice-youtube-perl 1.0.3-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libwebservice-youtube-perl 1.0.3-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libwebservice-youtube-perl 1.0.3-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libwebservice-youtube-perl 1.0.3-4.1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms