Net::PMP::Profile::Media - Rich Media Profile for PMP CollectionDoc
use Net::PMP; use Net::PMP::Profile::Media; my $media = Net::PMP::Profile::Media->new( title => 'I am A Title', published => '2013-12-03T12:34:56.789Z', valid => { from => "2013-04-11T13:21:31.598Z", to => "3013-04-11T13:21:31.598Z", }, byline => 'By: John Writer and Nancy Author', description => 'This is a summary of the document.', tags => [qw( foo bar baz )], enclosure => [ ], ); # instantiate a client my $client = Net::PMP->client( host => $host, id => $client_id, secret => $client_secret, ); # save doc $client->save($media);
Net::PMP::Profile::Media implements the CollectionDoc fields for the PMP Rich Media Profile https://github.com/publicmediaplatform/pmpdocs/wiki/Rich-Media-Profiles.
This class extends Net::PMP::Profile. Only new or overridden methods are documented here.
Required array of hashrefs or Net::PMP::Profile::MediaEnclosure objects representing the binary file of the media asset.
Returns a string for the PMP profile's URL.
Returns a string for the PMP link rels attribute. Defaults to urn:collectiondoc:profile_name.
urn:collectiondoc:
Returns MIME type for uri. Uses Media::Type::Simple and assumes uri has a recognizable filename extension.
Peter Karman, <karman at cpan.org>
<karman at cpan.org>
Please report any bugs or feature requests to bug-net-pmp at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-PMP-Profile. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-pmp at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::PMP
You can also look for information at:
Join #pmp on http://freenode.net.
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-PMP-Profile
http://annocpan.org/dist/Net-PMP-Profile
http://cpanratings.perl.org/d/Net-PMP-Profile
http://search.cpan.org/dist/Net-PMP-Profile/
American Public Media and the Public Media Platform sponsored the development of this module.
Copyright 2013 American Public Media Group
See the LICENSE file that accompanies this module.
To install Net::PMP::Profile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::PMP::Profile
CPAN shell
perl -MCPAN -e shell install Net::PMP::Profile
For more information on module installation, please visit the detailed CPAN module installation guide.