logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Author

       Johannes Plunien <plu@cpan.org>

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;

Name

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

Version

       version 0.01043

See Also