NAME
Net::OAuth::LP::Client - Launchpad.net Client routines
SYNOPSIS
Client for performing query tasks.
my $lp = Net::OAuth::LP::Client->new(consumer_key => 'consumerkey',
access_token => 'accesstoken',
access_token_secret => 'accesstokensecret');
# 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');
post
Takes resource link and params, and performs
POST on uri
$lp->post('lp.net/bugs/1', { 'ws.op' => 'newMessage',
'content' => "This is a message"});
bug
$lp->bug(1);
bug_set_tags
$lp->bug_set_tags($bug, ['tagA', 'tagB']);
bug_set_title
Set title of bug
$lp->bug_set_title($bug, 'A new title');
bug_new_message
Add new message to bug
$lp->bug_new_message($bug->{self_link}, "This is a comment");
bug_activity
view bug activity
$lp->bug_activity($resource);
bug_task
view bug tasks
$lp->bug_task($resource);
bug_set_importance
$lp->bug_set_importance($bug, 'Critical');
bug_set_assignee
$lp->bug_set_assignee($bug, $person_object);
person
$lp->person('lp-login');
search
$lp->search('ubuntu', { 'ws.op' => 'searchTasks',
'ws.size' => '10',
'status' => 'New' });
resource
$lp->resource('launchpad_resource_link');