The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Net::PMP - Perl SDK for the Public Media Platform

SYNOPSIS

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

DESCRIPTION

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().

METHODS

client( args )

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.

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. 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:

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.