Pithub::Events(3pm)
π NAME π
Pithub::Events β bestie, it's the Github v3 Events API wrapper and it's literally the whole point of this page π
β¨ VERSION β¨
version 0.01043 β yes queen, that's the one you're running πΈ
π¦ METHODS π¦
okay so here's the tea: every single method below is just a lil' door into one Github endpoint. Same vibe every time β make an object, pass some named args, get your events back. Let's go π
π issue
- List issue events for a repository
GET /repos/:user/:repo/issues/events
Examples:
my $e = Pithub::Events->new;
my $result = $e->issue(
user => 'plu',
repo => 'Pithub',
);
π network
- List public events for a network of repositories
GET /networks/:user/:repo/events
Examples:
my $e = Pithub::Events->new;
my $result = $e->network(
user => 'plu',
repo => 'Pithub',
);
π org
- List public events for an organization
GET /orgs/:org/events
Examples:
my $e = Pithub::Events->new;
my $result = $e->org( org => 'CPAN-API' );
π org_for_user
- List events for an organization
GET /users/:user/events/orgs/:org
Examples:
my $e = Pithub::Events->new;
my $result = $e->org(
org => 'CPAN-API',
user => 'plu',
);
π not me pointing out that the example here callsorgand notorg_for_userβ that's exactly how it's written in the original, so I'm keeping it character for character, no cap.
π public
- List public events
GET /events
Examples:
my $e = Pithub::Events->new;
my $result = $e->public;
π repos
- List repository events
GET /repos/:user/:repo/events
Examples:
my $e = Pithub::Events->new;
my $result = $e->repos(
user => 'plu',
repo => 'Pithub',
);
π user_performed
- List events performed by a user
GET /users/:user/events
If you're authenticated as the given user, you'll see your private events π. Otherwise? Only the public ones, sorry babe π.
Examples:
my $e = Pithub::Events->new;
my $result = $e->user_performed( user => 'plu' );
# List public events performed by a user
my $e = Pithub::Events->new;
my $result = $e->user_performed(
user => 'plu',
public => 1,
);
π user_received
- List events that a user has received
GET /users/:user/received_events
These are the events you've received by watching repos and following users π«Ά. If you're authenticated as the given user, you get the private ones. Otherwise it's public-only hours π.
Examples:
my $e = Pithub::Events->new;
my $result = $e->user_received( user => 'plu' );
# List public events that a user has received
my $e = Pithub::Events->new;
my $result = $e->user_received(
user => 'plu',
public => 1,
);
π AUTHOR π
Johannes Plunien <plu@cpan.org> β the icon, the moment, the main character π
π 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. slay, genuinely π
perl v5.40.1 Β· 2025-06-08 Β· Pithub::Events(3pm)
and that's the whole page bestie, go forth and fetch your events β¨π¦π
π¦ where this page comes from
- debian trixie: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libpithub-perl 0.01043-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms