File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed
Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,15 @@ async def get_user_organisations(self, user_id):
8585 get_user_organisations_path = "/users/%s/orgs" % user_id
8686 return await self .client .GET (get_user_organisations_path )
8787
88+ async def get_user_teams (self , user_id ):
89+ """
90+
91+ :param user_id:
92+ :return:
93+ """
94+ get_user_teams_path = "/users/%s/teams" % user_id
95+ return await self .client .GET (get_user_teams_path )
96+
8897
8998class User (Base ):
9099 def __init__ (self , client ):
@@ -145,6 +154,14 @@ async def get_actual_user_organisations(self):
145154 get_actual_user_organisations_path = "/user/orgs"
146155 return await self .client .GET (get_actual_user_organisations_path )
147156
157+ async def get_actual_user_teams (self ):
158+ """
159+
160+ :return:
161+ """
162+ get_actual_user_teams_path = "/user/teams"
163+ return await self .client .GET (get_actual_user_teams_path )
164+
148165 async def star_actual_user_dashboard (self , dashboard_id ):
149166 """
150167
Original file line number Diff line number Diff line change @@ -85,6 +85,15 @@ def get_user_organisations(self, user_id):
8585 get_user_organisations_path = "/users/%s/orgs" % user_id
8686 return self .client .GET (get_user_organisations_path )
8787
88+ def get_user_teams (self , user_id ):
89+ """
90+
91+ :param user_id:
92+ :return:
93+ """
94+ get_user_teams_path = "/users/%s/teams" % user_id
95+ return self .client .GET (get_user_teams_path )
96+
8897
8998class User (Base ):
9099 def __init__ (self , client ):
@@ -145,6 +154,14 @@ def get_actual_user_organisations(self):
145154 get_actual_user_organisations_path = "/user/orgs"
146155 return self .client .GET (get_actual_user_organisations_path )
147156
157+ def get_actual_user_teams (self ):
158+ """
159+
160+ :return:
161+ """
162+ get_actual_user_teams_path = "/user/teams"
163+ return self .client .GET (get_actual_user_teams_path )
164+
148165 def star_actual_user_dashboard (self , dashboard_id ):
149166 """
150167
You can’t perform that action at this time.
0 commit comments