Skip to content

Commit 08a176c

Browse files
committed
Merge pull request KnpLabs#223 from heimonsy/master
CurentUser add teams
2 parents 34dd09e + d6fd1a2 commit 08a176c

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

lib/Github/Api/CurrentUser.php

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,16 @@ public function organizations()
8888
return $this->get('user/orgs');
8989
}
9090

91+
/**
92+
* @link https://developer.github.com/v3/orgs/teams/#list-user-teams
93+
*
94+
* @return array
95+
*/
96+
public function teams()
97+
{
98+
return $this->get('user/teams');
99+
}
100+
91101
/**
92102
* @link http://developer.github.com/v3/repos/#list-your-repositories
93103
*
@@ -113,7 +123,7 @@ public function watchers()
113123
{
114124
return new Watchers($this->client);
115125
}
116-
126+
117127
/**
118128
* @deprecated Use watchers() instead
119129
*/
@@ -123,7 +133,7 @@ public function watched($page = 1)
123133
'page' => $page
124134
));
125135
}
126-
136+
127137
/**
128138
* @return Starring
129139
*/

0 commit comments

Comments
 (0)