use Net::GitHub::V3;
my $gh = Net::GitHub::V3->new (
login => '####',
pass => '%%%%',
);
my $repos = $gh->repos;
my $rp = $gh->repos->create ({
name => 'hello-world',
description => 'monkey business',
homepage => 'www.exmpale.org',
});
####
use FindBin '$Bin';
use Pithub;
use Data::Dumper;
use File::Slurper 'read_text';
my $token = read_text ("$Bin/token");
$token =~ s/\s//g;
my $pid = Pithub->new (
user => '####',
repo => '%%%%',
token => $token,
);
my $result = $pid->repos->get ();
print Dumper $result;
##
##
$ ph
setup ph. please input your id/pw to this prompt. password will not save to any location.
user: %%%%
pass: ####
Use of uninitialized value in pattern match (m//) at /home/ben/software/install/bin/ph line 362.
HTTP/1.1 404 Not Found
Connection: close
Date: Mon, 22 Feb 2021 01:32:35 GMT
Server: GitHub.com
Vary: Accept-Encoding, Accept, X-Requested-With
Content-Length: 74
Content-Type: application/json; charset=utf-8
Access-Control-Allow-Origin: *
Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset
Client-Date: Mon, 22 Feb 2021 01:32:35 GMT
Client-Peer: 52.69.239.207:443
Client-Response-Num: 1
Client-SSL-Cert-Issuer: /C=US/O=DigiCert Inc/OU=www.digicert.com/CN=DigiCert SHA2 High Assurance Server CA
Client-SSL-Cert-Subject: /C=US/ST=California/L=San Francisco/O=GitHub, Inc./CN=*.github.com
Client-SSL-Cipher: TLS_AES_128_GCM_SHA256
Client-SSL-Socket-Class: IO::Socket::SSL
Client-SSL-Version: TLSv1_3
Content-Security-Policy: default-src 'none'
Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-GitHub-Media-Type: github.v3; format=json
X-GitHub-Request-Id: EE38:0A8D:5C048:694DB:603309B3
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 59
X-RateLimit-Reset: 1613961155
X-Ratelimit-Used: 1
X-XSS-Protection: 1; mode=block
{"message":"Not Found","documentation_url":"https://docs.github.com/rest"}
$