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):
85
85
get_user_organisations_path = "/users/%s/orgs" % user_id
86
86
return await self .client .GET (get_user_organisations_path )
87
87
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
+
88
97
89
98
class User (Base ):
90
99
def __init__ (self , client ):
@@ -145,6 +154,14 @@ async def get_actual_user_organisations(self):
145
154
get_actual_user_organisations_path = "/user/orgs"
146
155
return await self .client .GET (get_actual_user_organisations_path )
147
156
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
+
148
165
async def star_actual_user_dashboard (self , dashboard_id ):
149
166
"""
150
167
Original file line number Diff line number Diff line change @@ -85,6 +85,15 @@ def get_user_organisations(self, user_id):
85
85
get_user_organisations_path = "/users/%s/orgs" % user_id
86
86
return self .client .GET (get_user_organisations_path )
87
87
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
+
88
97
89
98
class User (Base ):
90
99
def __init__ (self , client ):
@@ -145,6 +154,14 @@ def get_actual_user_organisations(self):
145
154
get_actual_user_organisations_path = "/user/orgs"
146
155
return self .client .GET (get_actual_user_organisations_path )
147
156
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
+
148
165
def star_actual_user_dashboard (self , dashboard_id ):
149
166
"""
150
167
You can’t perform that action at this time.
0 commit comments