Net::PMP - Perl SDK for the Public Media Platform
use Net::PMP; my $host = 'https://api-sandbox.pmp.io'; my $client_id = 'i-am-a-client'; my $client_secret = 'i-am-a-secret'; # instantiate a client my $client = Net::PMP->client( host => $host, id => $client_id, secret => $client_secret, ); # search my $search_results = $client->search({ tag => 'samplecontent', profile => 'story' }); my $results = $search_results->get_items(); printf( "total: %s\n", $results->total ); while ( my $r = $results->next ) { printf( '%s: %s [%s]', $results->count, $r->get_uri, $r->get_title, ) ); }
Net::PMP is a Perl client for the Public Media Platform API (http://docs.pmp.io/).
This class is mostly a namespace-holder and documentation, with one convenience method: client().
Returns a new Net::PMP::Client object. See Net::PMP::Client new() method for args details. Note that new_with_config() is the actual method called, as a convenience via MooseX::SimpleConfig. You can define a config file in $ENV{HOME}/.pmp.yaml (default) and it will be read automatically when instantiating a Client. See MooseX::SimpleConfig and Net::PMP::CLI for examples.
Peter Karman, <pkarman at cpan.org>
<pkarman 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
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
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.