WebSer...YouTube(3pm)

πŸ’– WebService::YouTube πŸ’–

okay bestie, welcome to WebService::YouTube, the Perl interface to YouTube, living its best life in the 3pm section of the manual (that's Perl module docs, iykyk). This doc describes version 1.0.3. Let's get into it 🫢


✨ SYNOPSIS ✨

use WebService::YouTube;

my $youtube = WebService::YouTube->new( { dev_id => 'YOUR_DEV_ID' } );

# Get videos via REST API
my @videos = $youtube->videos->list_featured;

# Get videos via RSS Feed
my @videos = $youtube->feeds->recently_added;

like, four lines and you're already pulling videos. main character energy fr πŸ’…


🌸 DESCRIPTION 🌸

So this is a Perl interface to the YouTube API and RSS. If you want the deets, go peek at the Developers Page at http://youtube.com/dev and About RSS at http://www.youtube.com/rssls. ✨

🚨 okay important thing, listen up: this module supports only the Legacy API. It does not support the YouTube Data API that's based on the Google data protocol. Periodt. If that's what you need, go read the YouTube Data API Overview at http://code.google.com/apis/youtube/overview.html instead. πŸ’€

πŸŽ€ SUBROUTINES/METHODS πŸŽ€

new(\%fields)

Makes you a brand new WebService::YouTube object and hands it over. The %fields you pass in can hold any of the parameters listed down in the "ACCESSORS" section. new object, new era, obsessed 🌈

videos( )

Returns a WebService::YouTube::Videos object. that's it, that's the method πŸ’–

feeds( )

Returns a WebService::YouTube::Feeds object. iconic behavior honestly πŸ¦‹


πŸ‘‘ ACCESSORS πŸ‘‘

  • dev_id β€” your Developer ID. yes you need it, it's the whole vibe check πŸ”‘
  • ua β€” an LWP::UserAgent object. that's your little internet-fetching bestie 🧚

πŸ’€ DIAGNOSTICS πŸ’€

None. literally nothing. silent queen, no notes πŸ™ˆ


🌟 CONFIGURATION AND ENVIRONMENT 🌟

WebService::YouTube requires no configuration files and no environment variables. zero setup, just vibes ✨


πŸ“ DEPENDENCIES πŸ“

  • Class::Accessor::Fast
  • WebService::YouTube::Videos
  • WebService::YouTube::Feeds

that's the whole squad 🫢


😭 INCOMPATIBILITIES 😭

  • WWW::YouTube

not it, bestie. they don't play nice πŸ’…


πŸ”₯ BUGS AND LIMITATIONS πŸ”₯

No bugs have been reported. (slay, but also, we know how that goes 😌)

Please report any 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'll automatically get notified of progress on your bug as changes get made. like, you're in the loop the whole time, we love a feedback cycle πŸ’œ


🌸 AUTHOR 🌸

Hironori Yoshida <yoshida@cpan.org> β€” thank you for your service, king πŸ‘‘


This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic. go forth and remix, legally πŸŽ€


and that's the whole page bestie!! this was perl v5.32.0, dated 2021-01-07 β€” mwah, go build something cute πŸ’…βœ¨

πŸ“¦ where this page comes from