diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2017-06-20 21:42:41 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2017-06-20 21:42:41 (GMT) |
commit | 98402d1c8bff854d16a074c0280f7499e624540f (patch) | |
tree | 61cad8f6e15484b32b37aa4940de1ff89bca10f9 /tinder.py | |
parent | 13d8fa8f46e644ecc591f09b1a386759fc53d19e (diff) |
Added support for Superlikes.
Diffstat (limited to 'tinder.py')
-rw-r--r-- | tinder.py | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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.""" |