Skip to content

Commit fea608b

Browse files
authored
Add a function to get user organizations
1 parent 39118bd commit fea608b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/Github/Api/User.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,17 @@ public function organizations($username)
7171
return $this->get('/users/'.rawurlencode($username).'/orgs');
7272
}
7373

74+
/**
75+
* Get user organizations
76+
*
77+
* @link https://developer.github.com/v3/orgs/#list-your-organizations
78+
*
79+
* @return array information about organizations that authenticated user belongs to
80+
*/
81+
public function orgs($username)
82+
{
83+
return $this->get('/user/orgs');
84+
}
7485
/**
7586
* Request the users that a specific user is following.
7687
*

0 commit comments

Comments
 (0)