NAME

Net::GitHub::V3::Orgs - GitHub Orgs API

SYNOPSIS

use Net::GitHub::V3;

my $gh = Net::GitHub::V3->new; # read L<Net::GitHub::V3> to set right authentication info
my $org = $gh->org;

DESCRIPTION

METHODS

Orgs

http://developer.github.com/v3/orgs/

orgs
my @orgs = $org->orgs(); # /user/org
my @orgs = $org->orgs( 'nothingmuch' ); # /users/:user/org
org
my $org  = $org->org('perlchina');
update_org
my $org  = $org->update_org($org_name, { name => 'new org name' });

Members

http://developer.github.com/v3/orgs/members/

members
is_member
delete_member
my @members = $org->members('perlchina');
my $is_member = $org->is_member('perlchina', 'fayland');
my $st = $org->delete_member('perlchina', 'fayland');
public_members
is_public_member
publicize_member
conceal_member
my @members = $org->public_members('perlchina');
my $is_public_member = $org->is_public_member('perlchina', 'fayland');
my $st = $org->publicize_member('perlchina', 'fayland');
my $st = $org->conceal_member('perlchina', 'fayland');
owner_members
my @admins = $org->owner_members('perlchina');
no_2fa_members
my @no_2fa_members = $org->no_2fa_members('perlchina');
membership
update_membership
delete_membership
my $membership = $org->membership('perlchina', 'fayland');
my $membership = $org->update_membership('perlchina', 'fayland', {
    role => 'admin',
});
my $st = $org->delete_membership('perlchina', 'fayland');

Org Teams API

http://developer.github.com/v3/orgs/teams/

teams
team
create_team
update_team
delete_team
my @teams = $org->teams('perlchina');
my $team  = $org->team($team_id);
my $team  = $org->create_team('perlchina', {
    "name" => "new team"
});
my $team  = $org->update_team($team_id, {
    name => "new team name"
});
my $st = $org->delete_team($team_id);
team_members
is_team_member
add_team_member
delete_team_member
my @members = $org->team_members($team_id);
my $is_team_member = $org->is_team_member($team_id, 'fayland');
my $st = $org->add_team_member($team_id, 'fayland');
my $st = $org->delete_team_member($team_id, 'fayland');
team_repos
is_team_repos
add_team_repos
delete_item_repos
my @repos = $org->team_repos($team_id);
my $is_team_repos = $org->is_team_repos($team_id, 'Hello-World');
my $st = $org->add_team_repos($team_id, 'Hello-World');
my $st = $org->add_team_repos($team_id, 'YoinkOrg/Hello-World', { permission => 'admin' });
my $st = $org->add_team_repos($team_id, 'YoinkOrg/Hello-World', { permission => 'push' });
my $st = $org->add_team_repos($team_id, 'YoinkOrg/Hello-World', { permission => 'pull' });
my $st = $org->delete_team_repos($team_id, 'Hello-World');

AUTHOR & COPYRIGHT & LICENSE

Refer Net::GitHub