Net::OAuth::LP::Models::Person - Person model
Model interface for retrieving/setting person/team information.
my $c = Net::OAuth::LP::Client->new(consumer_key => 'blah', access_token => 'fdsafsda', access_token_secret => 'fdsafsda'); my $p = Net::OAuth::LP::Models::Person->new(c => $c, resource => '~adam-stokes'); $p->fetch; say $p->attrs->display_name;
Contains hash object of https://api.launchpad.net/1.0.html#person
my $p = Net::OAuth::LP::Models::Person->new(c => $c, resource => 'lp-name');
Set launchpad name
$p->set_name('new-name');
Set description
$p->set_description('Im a real boy!');
Sets display name
$p->set_display_name('A Name');
Gets bugs assigned to $person
$p->get_assigned_bugs;
To install Net::OAuth::LP, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::OAuth::LP
CPAN shell
perl -MCPAN -e shell install Net::OAuth::LP
For more information on module installation, please visit the detailed CPAN module installation guide.