NAME
WWW::Youtube - Youtube interface.
SYNOPSIS
Usage:
use WWW::Youtube;
$ENV{PERL_LWP_SSL_VERIFY_HOSTNAME} = 0;
my $youtube = WWW::Youtube->new( username => USERNAME@gmail.com, password => PASS);
DESCRIPTION
Youtube interface
FUNCTIONS
constructor
my $youtube = WWW::Youtube->new( username => USERNAME@gmail.com,
password => PASS);
login
$youtube->login;
Login to the Youtube account with the username and password provided. You MUST call this function before call any other function.
upload_video
my $video_file = 'fun.mp4';
my $title = "my title final";
my $description = "my content final";
my $category = 'Comedy';
$id = $youtube->upload_video($title,$description,$category, $video_file);
print "url http://www.youtube.com/watch?v=$id \n";
Upload a video
dispatch Internal function
LICENSE
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html