• Stars
    star
    112
  • Rank 312,240 (Top 7 %)
  • Language
    Perl
  • License
    Other
  • Created over 15 years ago
  • Updated about 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Perl interface to GitHub

Build Status Actions Status Actions Status

NAME

Net::GitHub - Perl Interface for github.com

SYNOPSIS

use Net::GitHub;

my $github = Net::GitHub->new(  # Net::GitHub::V3
    login => 'fayland', pass => 'secret'
);

# If you use two factor authentication you can pass in the OTP. Do
# note that OTPs expire quickly and you will need to generate an oauth
# token to do anything non-trivial.
my $github = Net::GitHub->new(
    login =>   'fayland',
    pass =>    'secret',
    otp =>     '123456',
);

# Pass api_url for GitHub Enterprise installations. Do not include a
# trailing slash
my $github = Net::GitHub->new(  # Net::GitHub::V3
    login =>   'fayland',
    pass =>    'secret',
    api_url => 'https://gits.aresweet.com/api/v3'
);

# suggested
# use OAuth to create token with user/pass
my $github = Net::GitHub->new(  # Net::GitHub::V3
    access_token => $token
);

# L<Net::GitHub::V3::Users>
my $user = $github->user->show('nothingmuch');
$github->user->update( bio => 'Just Another Perl Programmer' );

# L<Net::GitHub::V3::Repos>
my @repos = $github->repos->list;
my $rp = $github->repos->create( {
    "name" => "Hello-World",
    "description" => "This is your first repo",
    "homepage" => "https://github.com"
} );

DESCRIPTION

http://github.com is a popular git host.

This distribution provides easy methods to access GitHub via their APIs.

Check http://developer.github.com/ for more details of the GitHub APIs.

Read Net::GitHub::V3 for API usage.

Read Net::GitHub::V4 for GitHub GraphQL API.

If you prefer object oriented way, Pithub is 'There is more than one way to do it'.

FAQ

  • create access_token for Non-Web Application

    my $gh = Net::GitHub::V3->new( login => 'fayland', pass => 'secret' );
    my $oauth = $gh->oauth;
    my $o = $oauth->create_authorization( {
        scopes => ['user', 'public_repo', 'repo', 'gist'], # just ['public_repo']
        note   => 'test purpose',
    } );
    print $o->{token};

    after create the token, you can use it without your password publicly written

    my $github = Net::GitHub->new(
        access_token => $token, # from above
    );

Git

http://github.com/fayland/perl-net-github/

SEE ALSO

Pithub

AUTHOR

Fayland Lam, <fayland at gmail.com>

Everyone who is listed in Changes.

COPYRIGHT & LICENSE

Copyright 2009-2012 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.

More Repositories

1

perl-lingua-han

all Lingua::Han:: CPAN modules
Perl
30
star
2

chinese-perl-book

free book in Chinese "Master Perl Today"
Perl
23
star
3

perl-www-contact

WWW::Contact - Get contacts/addressbook from Web
Perl
22
star
4

qiandao_chrome_extension

Chrome 插仢 θ‡ͺ动签到
JavaScript
17
star
5

perl-git-store

Git as versioned data store in Perl
Perl
16
star
6

business-pxpay

PX Pay Interface for www.paymentexpress.com
Perl
15
star
7

findmjob.com

Push Jobs To You
Perl
15
star
8

perl-javascript-beautifier

Perl: Beautify Javascript (beautifier for javascript)
Perl
14
star
9

perl-app-github

App::GitHub CPAN module
Perl
12
star
10

dist-zilla-plugin-repository

Automatically sets repository URL from svn/svk/Git checkout for Dist::Zilla
Perl
11
star
11

foorum

Foorum (a forum/BBS system based on Catalyst)
Perl
10
star
12

dist-zilla-plugin-perltidy

Dist::Zilla with Perl::Tidy
Perl
10
star
13

Slim-Middleware-RequireHTTPS

Slim middleware: redirect http to https
PHP
7
star
14

perl6-WebService-GitHub

GitHub API
Perl 6
6
star
15

perl-Dist-Zilla-Plugin-GitHubREADME-Badge

Dist::Zilla - add badges to github README.md
Perl
6
star
16

dist-zilla-plugin-readmefrompod

Dist::Zilla::Plugin::ReadmeFromPod
Perl
6
star
17

chinese_stroke

Go: Retrieve the stroke count of Chinese character.
Go
5
star
18

daydayup

Perl
4
star
19

perl6-Cache-LRU

Simple, fast implementation of LRU cache in pure perl
Raku
4
star
20

chinese-stroke

nodejs Chinese stroke
JavaScript
4
star
21

shuapiao

something evil, fake voting
Perl
4
star
22

perl-Net-WHMCS

WHMCS API
Perl
4
star
23

WWW-TheBestSpinner

perl TheBestSpinner API
Perl
3
star
24

perl-Net-Todoist

Todoist API
Perl
3
star
25

perl6-Lingua-Unihan

Perl6 reader (SQLite) for unihan database
Perl 6
3
star
26

perl-Business-AuthorizeNet-CIM

Authorize.Net CIM
Perl
3
star
27

lingua-han-cantonese

nodejs: Retrieve the Cantonese(GuangDongHua) of Chinese character(HanZi)
JavaScript
3
star
28

google-code-upload

uploading files to a Google Code project by Perl
Perl
3
star
29

dbix-class-resultset-void

improve DBIx::Class::ResultSet with void context
Perl
3
star
30

fayland

code and others
Perl
3
star
31

catalyst-traitfor-model-dbic-schema-querylog

Catalyst::TraitFor::Model::DBIC::Schema::QueryLog
Perl
2
star
32

perl6-Gravatar-URL

Make URLs for Gravatars from an email address
Perl 6
2
star
33

perl6-WebService-Google-PageRank

Query Google PageRank
Perl 6
2
star
34

perl6-Acme-in

Perl 6
2
star
35

wpmanagerpro

wordpress plugin wpmanagerpro
PHP
2
star
36

Net-SMTP-TLS

Release history of Net-SMTP-TLS
Perl
2
star
37

scrapers

scrapers written for fun/money
Python
2
star
38

theschwartz-moosified

Moosified Schwartz
Perl
2
star
39

perl-WebService-AntiCaptcha

anti-captcha.com API
Perl
2
star
40

www-google-contacts

Google Contacts Data API in Perl
Perl
2
star
41

perl-Acme-Gwt-Parser

trying to parse x-gwt-rpc request/response
Perl
2
star
42

casperjs-qiandao

earn points = earn money?
CoffeeScript
2
star
43

p5-Business-PayPoint

PayPoint online payment
Perl
2
star
44

Plack-Middleware-FileWrap

Wrap file with headers/footers in Plack
Perl
2
star
45

dist-zilla-plugin-checkchangelog

Dist::Zilla with Changes check
Perl
1
star
46

betsapi-translation

1
star
47

ordb-unihan

An ORM for the published Unihan database
Perl
1
star
48

dotfiles

.dotfiles
Shell
1
star
49

perl-Email-Send-SMTP-TLS

Send Email using Net::SMTP::TLS (esp. Gmail) (Old Style, suggest Email::Sender)
Perl
1
star
50

opensocialx-shindig-crypter

OpenSocial Shindig Crypter
Perl
1
star
51

fayland.org

codes
1
star
52

perl-MojoX-CloudFlare-Simple

simple cloudflare client without wrapper
Perl
1
star
53

perl-WWW-Yotpo

Perl
1
star
54

tools

Perl
1
star
55

catalyst-authentication-store-fromsub

Perl
1
star
56

p5-jekyll-scripts

Perl
1
star
57

perl-WebService-DeathByCaptcha

DeathByCaptcha recaptcha API
Perl
1
star
58

perl-Business-Alipay

alipay payment
Perl
1
star
59

perl-sphinx-log-parser

parse Sphinx searchd log
Perl
1
star
60

perl6-Business-CreditCard

Validate/generate credit card checksums/names
Perl 6
1
star
61

perl6-Locale-Codes

Locale codes - Country, Currency, Langauge
Perl
1
star
62

email-sender-transport-smtp-tls

Email::Sender with Net::SMTP::TLS (Eg. Gmail)
Perl
1
star
63

findmjob.com_chrome_extension

findmjob.com Chrome Extension
JavaScript
1
star
64

perl-WebService-IPRental

IP Rental API
Perl
1
star
65

perl6-Net-Statsd

Sends statistics to the stats daemon over UDP
Perl 6
1
star
66

dist-zilla-pluginbundle-fayland

Dist::Zilla like FAYLAND when you build your dists
Perl
1
star
67

perl-Email-Sender-Transport-SMTPS

Email::Sender joins Net::SMTPS
Perl
1
star
68

p5-Business-RealEx

RealVault, Remote (Integrated) XML Solution
Perl
1
star
69

perl-business-payflowpro-reporting

Payflow Pro Reporting API
1
star