Skip to content

Commit 08efeda

Browse files
committed
Fix collaborator and team manager functions
1 parent 14b3fdd commit 08efeda

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

frameioclient/services/projects.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def add_collaborator(self, project_id, email):
140140

141141
payload = {"email": email}
142142
endpoint = "/projects/{}/collaborators".format(project_id)
143-
return self._api_call("post", endpoint, payload=payload)
143+
return self.client._api_call("post", endpoint, payload=payload)
144144

145145
def remove_collaborator(self, project_id, email):
146146
"""
@@ -159,4 +159,4 @@ def remove_collaborator(self, project_id, email):
159159
"""
160160

161161
endpoint = "/projects/{}/collaborators/_?email={}".format(project_id, email)
162-
return self._api_call("delete", endpoint)
162+
return self.client._api_call("delete", endpoint)

frameioclient/services/teams.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def add_members(self, team_id, emails):
8787
payload["batch"] = list(map(lambda email: {"email": email}, emails))
8888

8989
endpoint = "/batch/teams/{}/members".format(team_id)
90-
return self._api_call("post", endpoint, payload=payload)
90+
return self.client._api_call("post", endpoint, payload=payload)
9191

9292
def remove_members(self, team_id, emails):
9393
"""
@@ -102,4 +102,4 @@ def remove_members(self, team_id, emails):
102102
payload["batch"] = list(map(lambda email: {"email": email}, emails))
103103

104104
endpoint = "/batch/teams/{}/members".format(team_id)
105-
return self._api_call("delete", endpoint, payload=payload)
105+
return self.client._api_call("delete", endpoint, payload=payload)

0 commit comments

Comments
 (0)