Pithub::Users::Keys(3) Github v3 User Keys API

VERSION

version 0.01033

METHODS

create

  • Create a public key

        POST /user/keys
    

    Examples:

        my $k = Pithub::Users::Keys->new( token => 'b3c62c6' );
        my $result = $k->create(
            data => {
                title => 'plu@localhost',
                key   => 'ssh-rsa AAA...',
            }
        );
    

delete

  • Delete a public key

        DELETE /user/keys/:id
    

    Examples:

        my $k = Pithub::Users::Keys->new( token => 'b3c62c6' );
        my $result = $k->delete( key_id => 123 );
    

get

  • Get a single public key

        GET /user/keys/:id
    

    Examples:

        my $k = Pithub::Users::Keys->new( token => 'b3c62c6' );
        my $result = $k->get( key_id => 123 );
    

list

  • List public keys for a user

        GET /user/keys
    

    Examples:

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

AUTHOR

Johannes Plunien <[email protected]>

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.