Add /user/teams (GET)

This commit is contained in:
poulp
2013-12-07 22:00:09 +01:00
parent 3ff7e4843e
commit de8932976f
+12
View File
@@ -900,6 +900,18 @@ class AuthenticatedUser(github.GithubObject.CompletableGithubObject):
None
)
def get_teams(self):
"""
:calls: `GET /user/teams <http://developer.github.com/v3/orgs/teams>`_
:rtype: :class:`github.PaginatedList.PaginatedList` of :class:`github.Team.Team`
"""
return github.PaginatedList.PaginatedList(
github.Team.Team,
self._requester,
"/user/teams",
None
)
def get_watched(self):
"""
:calls: `GET /user/watched <http://developer.github.com/v3/activity/starring>`_