NAME
Pithub::Users::Emails - Github v3 User Emails API
VERSION
version 0.01003
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;
AUTHOR
Johannes Plunien <plu@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2011 by Johannes Plunien.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.