Scroll to navigation

Net::GitHub::V3::Search(3pm) User Contributed Perl Documentation Net::GitHub::V3::Search(3pm)

NAME

Net::GitHub::V3::Search - GitHub Search API

SYNOPSIS

    use Net::GitHub::V3;
    my $gh = Net::GitHub::V3->new; # read L<Net::GitHub::V3> to set right authentication info
    my $search = $gh->search;

DESCRIPTION

METHODS

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});
    

AUTHOR & COPYRIGHT & LICENSE

Refer Net::GitHub

2022-10-08 perl v5.34.0