Skip to content

Commit 6a2078b

Browse files
franzhcsstanislavulrych
authored andcommitted
Team memberships
1 parent 6ddb0cd commit 6a2078b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tempoapiclient/client.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,14 @@ def get_account_team_membership(self, teamid, accountid):
185185
url = f"/teams/{teamid}/members/{accountid}"
186186
return self._single(url)
187187

188+
def get_account_team_memberships(self, teamid, accountid):
189+
"""
190+
Returns all team memberships of a specific ```accountid``` in a specific ```teamid```.
191+
"""
192+
193+
url = f"/teams/{teamid}/members/{accountid}/memberships"
194+
return self._list(url)
195+
188196
def get_user_schedule(self, date_from, date_to, user=None):
189197
"""
190198
Returns user schedule inside ```date_from``` and ```date_to```,

0 commit comments

Comments
 (0)