charliewolf / pynder

:fire: Python client for tinder api
Other
638 stars 142 forks source link

MINIMUM_VERSION_REQUIRED error #206

Open chickenfresh opened 5 years ago

chickenfresh commented 5 years ago

Hello, I'm trying to use Pynder and on /auth, with properly generated fb token, it responds with following error: { "code": 403, "error": "minimum client version enforced#MINIMUM_VERSION_REQUIRED", "error_no": 40304 } I'm guessing that my headers are outdated for tinder, here they are:


HEADERS = {
    "Content-Type": "application/json; charset=utf-8",
    "User-Agent": USER_AGENT,
    "Host": API_BASE,
    "os_version": "1935",
    "app-version": "371",
    "platform": "android",  # XXX with ios we run in an error
    "Accept-Encoding": "gzip"
}

is there any fix?

swiftraccoon commented 5 years ago

There is! Simply pass only the XAuthToken; drop everything else. I just hard-coded XAuthToken because I didn't intend on trying to update this repo (not sure if owner is still around). For example: class TinderAPI(object):

def __init__(self, XAuthToken=None, proxies=None):
    XAuthToken = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'

def auth(self, XAuthToken, blah): return