NAME

Pithub::Users

VERSION

version 0.01000

METHODS

get

  • 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

  • Update the authenticated user

    PATCH /user

Examples:

$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' } );