Pithub...s::Keys(3pm)

πŸ“¦
version 0.01043 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

Pithub::Users::Keys β€” it's giving Github v3 User Keys API ✨ it's the Perl module that lets you vibe with the GitHub user-keys endpoints, bestie. From the User Contributed Perl Documentation collection, no less πŸŽ€


🌸 VERSION 🌸

version 0.01043 β€” that's the one, that's the era we're in πŸ’…


πŸ¦‹ METHODS πŸ¦‹

Okay so every single method here is basically a lil wrapper around one API call, and they all start the same way: you make a Pithub::Users::Keys object with your token, then you go off. Let's get into it πŸ‘‘

πŸŽ€ 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 πŸ’€ (she's gone, she's deleted, no cap)
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 🌸 just the one, the main character 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 🌈 the whole squad, all the keys, in a list
GET /user/keys

Examples:

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

✨ AUTHOR ✨

Johannes Plunien <plu@cpan.org> β€” shoutout to the icon who wrote this, we stan πŸ«ΆπŸ‘‘


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. Periodt πŸ’…


perl v5.40.1 Β· 2025-06-08 Β· Pithub...s::Keys(3pm) β€” okay bestie that's the whole page, go forth and key responsibly πŸ¦‹πŸ’–βœ¨

πŸ“¦ where this page comes from