Skip to content

Commit

Permalink
Merge pull request #6 from adeptlabs/VIT-114
Browse files Browse the repository at this point in the history
[VIT-114] Rename to deregister
  • Loading branch information
maitham authored Jun 14, 2021
2 parents 31edaf1 + dd507a8 commit 0980ff6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions vital/api/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def delete(self, user_key: str) -> Mapping[str, str]:
def get(self, client_user_id: str) -> Mapping[str, str]:
"""
Get user id.
:param dict configs: A required dictionary to configure the Link token.
:param str client_user_id: The client user id.
"""
return self.client.get(f"/user/key/{client_user_id}")

Expand All @@ -41,10 +41,11 @@ def providers(self, user_key: str) -> List[Mapping[str, str]]:

return self.client.get(f"/user/providers/{user_key}")

def unlink_device(self, user_key: str, provider: str) -> List[Mapping[str, str]]:
def deregister_provider(self, user_key: str, provider: str) -> List[Mapping[str, str]]:
"""
Create a Link token.
:param dict configs: A required dictionary to configure the Link token.
Deregister provider.
:param str user_key: The generated user_key
:param str provider: Provider to deregister
"""

return self.client.delete(f"/user/{user_key}/{provider}")

0 comments on commit 0980ff6

Please sign in to comment.