Net::PMP::CollectionDoc::Permission - permission link type from a Net::PMP::CollectionDoc::Links object
my $permission = Net::PMP::CollectionDoc::Permission->new( href => 'https://api.pmp.io/docs/some-guid-for-some-group', operation => 'read', blacklist => 1, ); $doc->links->{permission} = [ $permission ];
Net::PMP::CollectionDoc::Permission represents a special link in a Collection.doc+JSON PMP API response. See https://github.com/publicmediaplatform/pmpdocs/wiki/Permissions-Design.
Either write or read.
write
read
Boolean (true or false).
Returns object as Perl hashref. The blacklist() value, if set, will be output as a scalar reference to an integer, so that passing to encode_json() will create a proper JSON boolean.
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. 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::CollectionDoc::Link
You can also look for information at:
RT: CPAN's request tracker (report bugs here)
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-PMP
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Net-PMP
CPAN Ratings
http://cpanratings.perl.org/d/Net-PMP
Search CPAN
http://search.cpan.org/dist/Net-PMP/
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, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::PMP
CPAN shell
perl -MCPAN -e shell install Net::PMP
For more information on module installation, please visit the detailed CPAN module installation guide.