You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use Net::GitHub;
my$github = Net::GitHub->new( # Net::GitHub::V3login=>'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 slashmy$github = Net::GitHub->new( # Net::GitHub::V3login=>'fayland',
pass=>'secret',
api_url=>'https://gits.aresweet.com/api/v3'
);
# suggested# use OAuth to create token with user/passmy$github = Net::GitHub->new( # Net::GitHub::V3access_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"
} );