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

NAME

Net::OAuth::LP::Client - Launchpad.net Client routines

SYNOPSIS

If making authenticated requests (GET/POST/PATCH)

    my $lp = Net::OAuth::LP::Client->new(consumer_key => 'consumerkey',
                                         access_token => 'accesstoken',
                                         access_token_secret => 'accesstokensecret');

If just querying publicly accessible Launchpad information (GET)

    my $lp = Net::OAuth::LP::Client->new;

    # Use your launchpad.net name in place of adam-stokes. 
    # You can figure that out by visiting
    # https://launchpad.net/~/ and look at Launchpad Id.

    my $person = $lp->person('~adam-stokes');

METHODS

new

    my $lp = Net::OAuth::LP::Client->new(consumer_key => 'consumerkey',
                                         access_token => 'accesstoken',
                                         access_token_secret => 'accesstokensecret');

If called without OAuth credentials only publicly accessible content may be retrieved.

post

Takes resource link and params, and performs an update to that endpoint.

    $lp->post('lp.net/bugs/1', { 'ws.op' => 'newMessage',
                                 'content' => "This is a message"});
=head2 B<search>

Performs a search request against the target distribution.

    $lp->search('ubuntu', { 'ws.op' => 'searchTasks',
                            'ws.size' => '10',
                            'status' => 'New' });

resource

Access resource endpoints directly, however, once API is feature complete this method shouldn't need to be referenced.

    $lp->resource('launchpad_resource_link');

DEVELOPMENT

Repository

    http://github.com/battlemidget/Net-OAuth-LP

SUPPORT

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

    perldoc Net::OAuth::LP::Client

LICENSE AND COPYRIGHT

Copyright 2013 Adam Stokes.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.