Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect unmatch API #12

Open
mhluska opened this issue Aug 28, 2016 · 3 comments
Open

Incorrect unmatch API #12

mhluska opened this issue Aug 28, 2016 · 3 comments

Comments

@mhluska
Copy link

mhluska commented Aug 28, 2016

It seems like the tinder_client.remove call expects a match ID not a user ID. This problem might exist in other areas of the API. I got stuck on this for a while. It would be good to rename it.

Another issue is that if the tinder_client.remove call returns {status: 400} because of passing in a user ID, the gem doesn't raise an error.

Another issue, but this is personal preference, is the naming of the method. Why not just call it unmatch?

@jvenezia
Copy link
Owner

Hi @mhluska

At the time I wrote it, tinder_client.remove was to remove a previous "like" or "dislike" you made.
A match is different, it's when two people like each other. So if this exists, it's not yet implemented in this gem.

The gem uses an unofficial API, so it can break at any time...
If you confirm that the remove feature does not work anymore, then we should get rid of it in the gem.
If you confirm that unmatchworks well, then we should add this feature :)

Pull-requests are appreciated!

@mhluska
Copy link
Author

mhluska commented Aug 29, 2016

Ah I see. Yeah, I've confirmed that remove works for unmatching by passing a match ID. I'll see if I can send a PR later this week.

@mhluska mhluska closed this as completed Aug 29, 2016
@mhluska mhluska reopened this Aug 29, 2016
@jvenezia
Copy link
Owner

So renaming it unmatch and passing a match_id seems ok to me :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants