From 69f33696e7eddf19014ecc54c73393b5425b356e Mon Sep 17 00:00:00 2001 From: ale Date: Fri, 8 Jul 2022 18:28:20 -0400 Subject: [PATCH] unmatch request added --- tinder_api/user.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tinder_api/user.py b/tinder_api/user.py index 6d59efb..5cadadb 100644 --- a/tinder_api/user.py +++ b/tinder_api/user.py @@ -76,6 +76,13 @@ def get_match_data(self): """Returns a [] of match data""" return [x for x in session.Session().list_matches() if x['_id'] == self.match_id][0] + def unmatch(self): + """Unmatch the user""" + resp = r.delete('/user/matches/{}?locale=en'.format(self.match_id)) + if resp.status_code != 200: + return resp + return "Error, unable to delete the match" + def message(self, body): """Messages the user""" resp = r.post('/user/matches/{}'.format(self.match_id),