Net::G...:Search(3pm)
π Net::GitHub::V3::Search β GitHub Search API π
okay bestie, so this is a User Contributed Perl Documentation page for Net::GitHub::V3::Search(3pm), and it's literally the GitHub Search API wrapped up all cute for you. sit down, hydrate, let's go πΈ
β¨ NAME β¨
Net::GitHub::V3::Search β it's giving GitHub Search API, periodt. π₯
π SYNOPSIS π
first things first, you load the big one and grab your search object:
use Net::GitHub::V3;
my $gh = Net::GitHub::V3->new; # read L<Net::GitHub::V3> to set right authentication info
my $search = $gh->search;
ngl the comment is important β go read Net::GitHub::V3 so your authentication info is actually set right, otherwise you're just a girl standing in front of an API with no credentials π
π DESCRIPTION π
π¦ METHODS π¦
β Search β
the vibe check link is right here: <http://developer.github.com/v3/search/> β that's the whole API she's built on, iykyk.
π issues
search the issues, bestie:
my %data = $search->issues({
q => 'state:open repo:fayland/perl-net-github',
sort => 'created',
order => 'asc',
});
print Dumper(\$data{items});
look at her go β querying by state:open and repo:fayland/perl-net-github, sorting by created, ordering asc. iconic. β¨
π§ repositories
repo search, my beloved:
my %data = $search->repositories({
q => 'perl',
sort => 'stars',
order => 'desc',
});
print Dumper(\$data{items});
q => 'perl', sort => 'stars', order => 'desc' β we're hunting for the most starred perl repos, as we should π
π code
code search!! main character energy:
my %data = $search->code({
q => 'addClass in:file language:js repo:jquery/jquery'
});
print Dumper(\$data{items});
one query, all the qualifiers β addClass in:file language:js repo:jquery/jquery β she's specific and she's right π«Ά
π users
and finally, the people:
my %data = $search->users({
q => 'perl',
sort => 'followers',
order => 'desc',
});
print Dumper(\$data{users});
q => 'perl', sort => 'followers', order => 'desc' β finding the perl people with the most followers fr fr. also notice this one dumps $data{users} not $data{items}, so don't get it twisted π
π AUTHOR & COPYRIGHT & LICENSE π
Refer Net::GitHub β that's the whole thing, bestie, all the author/copyright/license tea lives over in Net::GitHub π
k bye, love u, go search something iconic β¨
this page was served up by perl v5.36.0 on 2022-10-08 β she's a lil vintage but she ate π
π¦ where this page comes from
- ubuntu noble: libnet-github-perl 1.05-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libnet-github-perl 1.05-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libnet-github-perl 1.05-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