Skip to content

Commit 9f1d286

Browse files
committed
Merge pull request #99 from fh/master
Feature: Adding a call to get current users' organization memberships
2 parents adeab79 + 64fe2a6 commit 9f1d286

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/Github/Api/CurrentUser.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,16 @@ public function notifications()
7676
return new Notifications($this->client);
7777
}
7878

79+
/**
80+
* @link http://developer.github.com/v3/orgs/#list-user-organizations
81+
*
82+
* @return array
83+
*/
84+
public function organizations()
85+
{
86+
return $this->get('user/orgs');
87+
}
88+
7989
/**
8090
* @link http://developer.github.com/v3/repos/#list-your-repositories
8191
*

0 commit comments

Comments
 (0)