Brightcove-MAPI
view release on metacpan or search on metacpan
lib/Brightcove/MAPI.pm view on Meta::CPAN
my $content = $res->decoded_content;
return decode_json($content);
} else {
confess $res->status_line;
}
}
1;
__END__
=pod
=head1 NAME
Brightcove::MAPI - Brightcove Media API Wrapper
=head1 VERSION
version 0.1
=head1 SYNOPSIS
use Brightcove::MAPI;
my $mapi = Brightcove::MAPI->new(token => '..');
my $read = $mapi->get(
'search_videos', {
page_size => 10,
}
);
my $write = $mapi->post(
'create_video', {
video => {
name => 'file name',
shortDescription => 'short file description',
}
}, '/tmp/video.mp4'
);
=head1 DESCRIPTION
This distribution provides a wrapper around the Brightcove Media API:
L<http://support.brightcove.com/en/docs/media-api-reference/>
=head1 METHODS
=head2 $mapi->get($mapi_method, \%params)
Wrapper for the read media api
=head2 $mapi->post($mapi_method, \%params)
Wrapper for the write media api
=head2 $mapi->post($mapi_method, \%params, $file_name)
Wrapper for the write media api with file upload
=head1 SEE ALSO
=head2 Brightcove Media API Reference
L<http://docs.brightcove.com/en/media/>
=head2 Open Source @ Brightcove
L<http://opensource.brightcove.com/>
=head1 AUTHOR
Maroun NAJM <mnajm@cinemoz.com>
=head1 COPYRIGHT AND LICENSE
This software is Copyright (c) 2011 by Cinemoz.
This is free software, licensed under:
The (three-clause) BSD License
=cut
( run in 0.585 second using v1.01-cache-2.11-cpan-b16cb0d3907 )