The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

WebService::YTSearch - Search YouTube

VERSION

version 0.0300

SYNOPSIS

  use WebService::YTSearch;

  my $w = WebService::YTSearch->new( key => '1234567890abcdefghij' );

  my $r = $w->search( q => 'foo', maxResults => 10 );
  print Dumper $r;

DESCRIPTION

WebService::YTSearch searches YouTube with your API key. YMMV.

ATTRIBUTES

key

Your authorized access key.

base

The base URL.

Default: https://www.googleapis.com

ua

The user agent.

METHODS

new

  $w = WebService::YTSearch->new(%arguments);

Create a new WebService::YTSearch object.

  $r = $w->search(%arguments);

Fetch the results given the arguments.

For the accepted arguments, please see the YouTube reference link below (the main one being q).

SEE ALSO

The examples in the eg/ directory.

The tests in t/01-methods.t

https://developers.google.com/youtube/v3/docs/search/list

Moo

Mojo::UserAgent

Mojo::URL

AUTHOR

Gene Boggs <gene@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2021 by Gene Boggs.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.