NAME

WebService::YouTube - Perl interfece to YouTube

VERSION

This document describes WebService::YouTube $Revision: 139 $

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;

DESCRIPTION

This is a Perl interface to YouTube API and RSS. See Developers Page http://youtube.com/dev and About RSS http://www.youtube.com/rssls for details.

SUBROUTINES/METHODS

new(\%fields)

Creates and returns a new WebService::YouTube object. %fields can contain parameters enumerated in "ACCESSORS" section.

videos( )

Returns a WebService::YouTube::Videos object.

feeds( )

Returns a WebService::YouTube::Feeds object.

ACCESSORS

dev_id

Developer ID

ua

LWP::UserAgent object

DEPRECATED SUBROUTINES/METHODS

parse_xml($xml)

This is deprecated. Please use "parse_xml" in WebService::YouTube::Videos.

videos_list_featured( )

This is deprecated. Please use "list_featured" in WebService::YouTube::Videos.

videos_get_details( $video_id )

This is deprecated. Please use "get_details" in WebService::YouTube::Videos.

parse_rss($rss)

This is deprecated. Please use "parse_rss" in WebService::YouTube::Feeds.

recently_added( )

This is deprecated. Please use "recently_added" in WebService::YouTube::Feeds.

recently_featured( )

This is deprecated. Please use "recently_featured" in WebService::YouTube::Feeds.

top_favorites( )

This is deprecated. Please use "top_favorites" in WebService::YouTube::Feeds.

top_rated( )

This is deprecated. Please use "top_rated" in WebService::YouTube::Feeds.

most_discussed_month( )

This is deprecated. Please use "most_discussed_month" in WebService::YouTube::Feeds.

most_discussed_today( )

This is deprecated. Please use "most_discussed_today" in WebService::YouTube::Feeds.

most_discussed_week( )

This is deprecated. Please use "most_discussed_week" in WebService::YouTube::Feeds.

top_viewed( )

This is deprecated. Please use "top_viewed" in WebService::YouTube::Feeds.

top_viewed_month( )

This is deprecated. Please use "top_viewed_month" in WebService::YouTube::Feeds.

top_viewed_today( )

This is deprecated. Please use "top_viewed_today" in WebService::YouTube::Feeds.

top_viewed_week( )

This is deprecated. Please use "top_viewed_week" in WebService::YouTube::Feeds.

DIAGNOSTICS

This is deprecated. Please see the document.

Some method have been deprecated in Version 0.02.

CONFIGURATION AND ENVIRONMENT

WebService::YouTube requires no configuration files or environment variables.

DEPENDENCIES

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

INCOMPATIBILITIES

WWW::YouTube

BUGS AND LIMITATIONS

No bugs have been reported.

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. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

AUTHOR

Hironori Yoshida <yoshida@cpan.org>

LICENSE AND COPYRIGHT

Copyright (c) 2006, Hironori Yoshida <yoshida@cpan.org>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.