Skip to content
This repository has been archived by the owner on Jun 5, 2020. It is now read-only.

Commit

Permalink
implemented new feature: share user
Browse files Browse the repository at this point in the history
  • Loading branch information
faruken committed Sep 11, 2016
1 parent 757653d commit aff5e50
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions aiotinder/controllers/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ async def common_connections(self, uid: AnyStr) -> Dict[AnyStr, G]:
url_path = "user/{0}/common_connections".format(uid)
return await self.request("get", url_path)

async def share(self, user: User) -> Dict[AnyStr, G]:
"""Share a user with someone on your contact list.
:param user: User
:return: JSON Response.
"""
url_path = "user/{0}/share".format(user._id)
return await self.request("post", url_path)

async def superlike(self, user: User) -> Dict[AnyStr, G]:
"""Superlike a user.
:param user: User
Expand Down

0 comments on commit aff5e50

Please sign in to comment.