1Net::GitHub::V3::Orgs(3U)ser Contributed Perl DocumentatiNoent::GitHub::V3::Orgs(3)
2
3
4

NAME

6       Net::GitHub::V3::Orgs - GitHub Orgs API
7

SYNOPSIS

9           use Net::GitHub::V3;
10
11           my $gh = Net::GitHub::V3->new; # read L<Net::GitHub::V3> to set right authentication info
12           my $org = $gh->org;
13

DESCRIPTION

15   METHODS
16       Orgs
17
18       <http://developer.github.com/v3/orgs/>
19
20       orgs
21               my @orgs = $org->orgs(); # /user/org
22               my @orgs = $org->orgs( 'nothingmuch' ); # /users/:user/org
23               while (my $o = $org->next_org) { ...; }
24
25       org
26               my $org  = $org->org('perlchina');
27
28       update_org
29               my $org  = $org->update_org($org_name, { name => 'new org name' });
30
31       Members
32
33       <http://developer.github.com/v3/orgs/members/>
34
35       members
36       is_member
37       delete_member
38               my @members = $org->members('perlchina');
39               while (my $m = $org->next_member) { ...; }
40               my $is_member = $org->is_member('perlchina', 'fayland');
41               my $st = $org->delete_member('perlchina', 'fayland');
42
43       public_members
44       is_public_member
45       publicize_member
46       conceal_member
47               my @members = $org->public_members('perlchina');
48               while (my $public_member = $org->next_public_member) { ...; }
49               my $is_public_member = $org->is_public_member('perlchina', 'fayland');
50               my $st = $org->publicize_member('perlchina', 'fayland');
51               my $st = $org->conceal_member('perlchina', 'fayland');
52
53       owner_members
54               my @admins = $org->owner_members('perlchina');
55               while (my $admin = $org->next_owner_member) { ...; }
56
57       no_2fa_members
58               my @no_2fa_members = $org->no_2fa_members('perlchina');
59               while (my $n2a_m = $org->next_no_2fa_member) { ...; }
60
61       outside_collaborators
62               my @collaborators = $org->outside_collaborators('perlchina');
63               while (my $helper = $org->next_outside_collaborator) { ...; }
64
65       membership
66       update_membership
67       delete_membership
68               my $membership = $org->membership('perlchina', 'fayland');
69               my $membership = $org->update_membership('perlchina', 'fayland', {
70                   role => 'admin',
71               });
72               my $st = $org->delete_membership('perlchina', 'fayland');
73
74       Org Teams API
75
76       <http://developer.github.com/v3/orgs/teams/>
77
78       teams
79       team
80       create_team
81       update_team
82       delete_team
83               my @teams = $org->teams('perlchina');
84               while (my $team = $org->next_team('perlchina')) { ...; }
85
86               my $team  = $org->team($team_id);
87               my $team  = $org->create_team('perlchina', {
88                   "name" => "new team"
89               });
90               my $team  = $org->update_team($team_id, {
91                   name => "new team name"
92               });
93               my $st = $org->delete_team($team_id);
94
95       team_members
96       is_team_member
97       add_team_member
98       delete_team_member
99               my @members = $org->team_members($team_id);
100               while (my $member = $org->next_team_member($team_id)) { ...; }
101               my $is_team_member = $org->is_team_member($team_id, 'fayland');
102               my $st = $org->add_team_member($team_id, 'fayland');
103               my $st = $org->delete_team_member($team_id, 'fayland');
104
105       team_maintainers
106               my @maintainers = $org->team_maintainers($team_id);
107               while (my $maintainer = $org->next_team_maintainer($team_id)) { ...; }
108
109       team_repos
110       is_team_repos
111       add_team_repos
112       delete_item_repos
113               my @repos = $org->team_repos($team_id);
114               while (my $repo = $org->next_team_repo($team_id)) { ...; }
115
116               my $is_team_repos = $org->is_team_repos($team_id, 'Hello-World');
117               my $st = $org->add_team_repos($team_id, 'Hello-World');
118               my $st = $org->add_team_repos($team_id, 'YoinkOrg/Hello-World', { permission => 'admin' });
119               my $st = $org->add_team_repos($team_id, 'YoinkOrg/Hello-World', { permission => 'push' });
120               my $st = $org->add_team_repos($team_id, 'YoinkOrg/Hello-World', { permission => 'pull' });
121               my $st = $org->delete_team_repos($team_id, 'Hello-World');
122
124       Refer Net::GitHub
125
126
127
128perl v5.30.0                      2019-07-26          Net::GitHub::V3::Orgs(3)
Impressum