NAME

Pithub::Users::Emails

VERSION

version 0.01000

METHODS

add

  • Add email address(es)

    POST /user/emails

Examples:

$p = Pithub->new( token => 'b3c62c6' );
$result = $p->users->emails->add( data => ['plu@cpan.org'] );
$result = $p->users->emails->add( data => [ 'plu@cpan.org', 'plu@pqpq.de' ] );

$e = Pithub::Users::Emails->new( token => 'b3c62c6' );
$result = $e->add( data => ['plu@cpan.org'] );
$result = $e->add( data => [ 'plu@cpan.org', 'plu@pqpq.de' ] );

delete

  • Delete email address(es)

    DELETE /user/emails

Examples:

$p = Pithub->new( token => 'b3c62c6' );
$result = $p->users->emails->delete( data => ['plu@cpan.org'] );
$result = $p->users->emails->delete( data => [ 'plu@cpan.org', 'plu@pqpq.de' ] );

$e = Pithub::Users::Emails->new( token => 'b3c62c6' );
$result = $e->delete( data => ['plu@cpan.org'] );
$result = $e->delete( data => [ 'plu@cpan.org', 'plu@pqpq.de' ] );

list

  • List email addresses for a user

    GET /user/emails

Examples:

$p = Pithub->new( token => 'b3c62c6' );
$result = $p->users->emails->list;

$e = Pithub::Users::Emails->new( token => 'b3c62c6' );
$result = $e->list;