DOKK / manpages / debian 10 / libpithub-perl / Pithub::Users::Emails.3pm.en
Pithub::Users::Emails(3pm) User Contributed Perl Documentation Pithub::Users::Emails(3pm)

Pithub::Users::Emails - Github v3 User Emails API

version 0.01034

Add email address(es)

    POST /user/emails
    

Examples:

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

Delete email address(es)

    DELETE /user/emails
    

Examples:

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

List email addresses for a user

    GET /user/emails
    

Examples:

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

Johannes Plunien <plu@cpan.org>

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.

2018-03-17 perl v5.26.1