Net::GitHub::V3::Search - GitHub Search API
use Net::GitHub::V3; my $gh = Net::GitHub::V3->new; # read L<Net::GitHub::V3> to set right authentication info my $search = $gh->search;
http://developer.github.com/v3/search/
my %data = $search->issues({ q => 'state:open repo:fayland/perl-net-github', sort => 'created', order => 'asc', }); print Dumper(\$data{items});
my %data = $search->repositories({ q => 'perl', sort => 'stars', order => 'desc', }); print Dumper(\$data{items});
my %data = $search->code({ q => 'addClass in:file language:js repo:jquery/jquery' }); print Dumper(\$data{items});
my %data = $search->users({ q => 'perl', sort => 'followers', order => 'desc', }); print Dumper(\$data{users});
Refer Net::GitHub
To install Net::GitHub, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::GitHub
CPAN shell
perl -MCPAN -e shell install Net::GitHub
For more information on module installation, please visit the detailed CPAN module installation guide.