1Net::GitHub::V3::SearchU(s3e)r Contributed Perl DocumentaNteito:n:GitHub::V3::Search(3)
2
3
4
6 Net::GitHub::V3::Search - GitHub Search API
7
9 use Net::GitHub::V3;
10
11 my $gh = Net::GitHub::V3->new; # read L<Net::GitHub::V3> to set right authentication info
12 my $search = $gh->search;
13
15 METHODS
16 Search
17
18 <http://developer.github.com/v3/search/>
19
20 issues
21 my %data = $search->issues({
22 q => 'state:open repo:fayland/perl-net-github',
23 sort => 'created',
24 order => 'asc',
25 });
26 print Dumper(\$data{items});
27
28 repositories
29 my %data = $search->repositories({
30 q => 'perl',
31 sort => 'stars',
32 order => 'desc',
33 });
34 print Dumper(\$data{items});
35
36 code
37 my %data = $search->code({
38 q => 'addClass in:file language:js repo:jquery/jquery'
39 });
40 print Dumper(\$data{items});
41
42 users
43 my %data = $search->users({
44 q => 'perl',
45 sort => 'followers',
46 order => 'desc',
47 });
48 print Dumper(\$data{users});
49
51 Refer Net::GitHub
52
53
54
55perl v5.30.1 2020-03-06 Net::GitHub::V3::Search(3)