Created
August 26, 2015 02:24
-
-
Save masasuzu/0e16272d3dad872956d2 to your computer and use it in GitHub Desktop.
githubのorganizationにあるレポジトリが欲しい
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use strict; | |
use warnings; | |
use feature qw( say ); | |
use Furl; | |
use JSON; | |
my ($user, $token, $orgs) = @ARGV; | |
my $url = sprintf('https://%s:%s@api.github.com/orgs/%s/repos', $user, $token, $orgs); | |
my $res = Furl->new->get($url); | |
die $res->status_line unless $res->is_success; | |
say $_->{name} for @{ decode_json($res->content) }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment