The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Net::PMP::Profile::Story - Story Profile for PMP CollectionDoc

SYNOPSIS

 use Net::PMP;
 use Net::PMP::Profile::Story;
 
 my $story = Net::PMP::Profile::Story->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 )],
     teaser    => 'important story to read here!',
     contentencoded => $html,
     contenttemplated => $templated_html,
 );

 # instantiate a client
 my $client = Net::PMP->client(
     host   => $host,
     id     => $client_id,
     secret => $client_secret,
 ); 

 # save doc
 $client->save($story);
 

DESCRIPTION

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

METHODS

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

teaser

Optional brief summary.

contentencoded

Optional full HTML-encoded string.

contenttemplated

Optional content with placeholders for rich media assets.

get_profile_url

Returns a string for the PMP profile's URL.

AUTHOR

Peter Karman, <karman 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.