Net::GitHub::V1 - (DEPERCATED, use V2) Perl Interface for github.com (V1)
use Net::GitHub::V1; # for http://github.com/fayland/perl-net-github/tree/master my $github = Net::GitHub::V1->new(); # project my $prj = $github->project( owner => 'fayland', name => 'perl-net-github' ); print $prj->description; print $prj->public_clone_url; my @commits = $prj->commits; foreach my $c ( @commits ) { my $commit = $prj->commit( $c->{id} ); } my @downloads = $prj->downloads; $prj->signin( 'login', 'password' ); $prj->wiki->new_page( 'PageTitle', "Page Content\n\nLine 2\n" ); # user my $user = $github->user( 'fayland' ); foreach my $repos ( @{ $user->repositories} ) { print "$repos->{owner} + $repos->{name}\n"; } # search my $result = $github->search( 'fayland' );
http://github.com is a popular git host.
Please feel free to fork http://github.com/fayland/perl-net-github/tree/master, fix or contribute some code. :)
$github->project( owner => 'fayland', name => 'perl-net-github' ); $github->project( 'fayland', 'perl-net-github' );
instance of Net::GitHub::V1::Project
$github->user( 'fayland' );
instance of Net::GitHub::V1::User
$github->search('fayland');
handled by Net::GitHub::V1::Search
http://github.com/fayland/perl-net-github/tree/master
Any::Moose
Fayland Lam, <fayland at gmail.com>
<fayland at gmail.com>
Copyright 2009 Fayland Lam, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
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.