in reply to How to access github with Pithub/Net::GitHub::V3?
This works for me and shows all my repos, including private repos.
#!/usr/bin/env perl use strict; use warnings; use feature 'say'; use Pithub; use constant GH_USER => 'tobyink'; # Your username! use constant GH_TOKEN => 'ABCX123'; # https://github.com/settings/toke +ns my $gh = 'Pithub'->new( user => GH_USER, token => GH_TOKEN, ); my $repos = $gh->repos->list; $repos->auto_pagination( 1 ); while ( my $repo = $repos->next ) { say $repo->{'name'}; }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: How to access github with Pithub/Net::GitHub::V3?
by no longer just digit (Beadle) on Feb 22, 2021 at 12:40 UTC | |
by choroba (Cardinal) on Feb 22, 2021 at 23:12 UTC | |
by no longer just digit (Beadle) on Feb 25, 2021 at 05:07 UTC | |
by tobyink (Canon) on Feb 22, 2021 at 20:48 UTC | |
by no longer just digit (Beadle) on Feb 22, 2021 at 22:48 UTC |
In Section
Seekers of Perl Wisdom