NAME

Net::PMP::Profile::Media - Rich Media Profile for PMP CollectionDoc

SYNOPSIS

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);

DESCRIPTION

Net::PMP::Profile::Media implements the CollectionDoc fields for the PMP Rich Media Profile https://github.com/publicmediaplatform/pmpdocs/wiki/Rich-Media-Profiles.

METHODS

This class extends Net::PMP::Profile. Only new or overridden methods are documented here.

enclosure

Required array of hashrefs or Net::PMP::Profile::MediaEnclosure objects representing the binary file of the media asset.

get_profile_url

Returns a string for the PMP profile's URL.

get_urn

Returns a string for the PMP link rels attribute. Defaults to urn:collectiondoc:profile_name.

get_type_from_uri( uri )

Returns MIME type for uri. Uses Media::Type::Simple and assumes uri has a recognizable filename extension.

AUTHOR

Peter Karman, <pkarman at cpan.org>

BUGS

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.

SUPPORT

You can find documentation for this module with the perldoc command.

perldoc Net::PMP

You can also look for information at:

IRC

Join #pmp on http://freenode.net.

* RT: CPAN's request tracker (report bugs here)

http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-PMP-Profile

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Net-PMP-Profile

* CPAN Ratings

http://cpanratings.perl.org/d/Net-PMP-Profile

* Search CPAN

http://search.cpan.org/dist/Net-PMP-Profile/

ACKNOWLEDGEMENTS

American Public Media and the Public Media Platform sponsored the development of this module.

LICENSE AND COPYRIGHT

Copyright 2013 American Public Media Group

See the LICENSE file that accompanies this module.

4 POD Errors

The following errors were encountered while parsing the POD:

Around line 133:

Expected text after =item, not a bullet

Around line 137:

Expected text after =item, not a bullet

Around line 141:

Expected text after =item, not a bullet

Around line 145:

Expected text after =item, not a bullet