summaryrefslogtreecommitdiff
path: root/tinder.py
diff options
context:
space:
mode:
Diffstat (limited to 'tinder.py')
-rw-r--r--tinder.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tinder.py b/tinder.py
index 3b9858a..79a9479 100644
--- a/tinder.py
+++ b/tinder.py
@@ -202,6 +202,17 @@ class TinderAPI(object):
raise ProcessingError()
+ def superlike(self, uid):
+ """Like a Tinder profile."""
+
+ data = self._post('/like/%s/super' % uid)
+
+ # {'match': False, 'super_likes': {'alc_remaining': 0, 'allotment': 1, 'superlike_refresh_interval': 1, 'superlike_refresh_interval_unit': 'd', 'remaining': 0, 'superlike_refresh_amount': 5, 'new_alc_remaining': 0, 'resets_at': '2017-06-20T19:54:18.027Z'}, 'status': 200}
+
+ if data['status'] != 200:
+ raise ProcessingError()
+
+
def dislike(self, uid):
"""Dislike a Tinder profile."""