Pithub::Users
version 0.01000
Get a single user
GET /users/:user
Get the authenticated user
GET /user
Examples:
$p = Pithub->new; $result = $p->users->get( user => 'plu'); $p = Pithub->new( token => 'b3c62c6' ); $result = $p->users->get; $u = Pithub::Users->new; $result = $u->get( user => 'plu'); $u = Pithub::Users->new( token => 'b3c62c6' ); $result = $u->get;
Update the authenticated user
PATCH /user
$p = Pithub->new( token => 'b3c62c6' ); $result = $p->users->update( data => { email => 'plu@cpan.org' } ); $u = Pithub::Users->new( token => 'b3c62c6' ); $result = $u->update( data => { email => 'plu@cpan.org' } );
To install Pithub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pithub
CPAN shell
perl -MCPAN -e shell install Pithub
For more information on module installation, please visit the detailed CPAN module installation guide.