-
Notifications
You must be signed in to change notification settings - Fork 140
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
Problems logging in #213
Comments
You can try #211 and let me know if it works |
I can get a tinder Auth token, but still get a 400 error with this code:
|
Just to clarify. With #211 version installed you get the 400 error? |
Okay, my mistake. I forgot the |
Just to manually throw requests to the api https://github.com/fbessez/Tinder and see if you can get something other than a 400. If you're able to login and get X-Auth-Token, I'm not sure why you get a 400 with other calls. So I would get my XAuthToken using cjekel/tindetheus#7 (comment), or however you did before. Then manually send a request using import requests
USER_AGENT = "Tinder/7.5.3 (iPhone; iOS 10.3.2; Scale/2.00)"
HEADERS = {
'app_version': '6.9.4',
'platform': 'ios',
"content-type": "application/json",
"User-agent": USER_AGENT,
"Accept": "application/json"
}
url_profile = 'https://api.gotinder.com/profile'
HEADERS['X-Auth-Token'] = 'xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx'
r = requests.get(url_profile, headers=HEADERS)
print(r)
print(r.json) but again if this throws a 400, I'm not sure what you can do. |
Hi @cjekel Tinder login is not working again. { Please let me know if you know something. Thanks! |
@throwoutofcoffeeexception did you get it working? I'm still getting the exception 400. |
@FavyTeam I don't know how to help with the 400. My PR and new auth is working for me right now. I'm using |
@cjekel Just test it using Postmon on my local and I got same errors. I don't know why it's not working and why they say it is Invalid request body... I also generate new access_token and use it. Is there any fields added on Auth API?
This error occurred! |
This works for me. (HTTP 200) What also works (HTTP 200) import requests
requests.Session().request(method="get",url='https://api.gotinder.com/profile',headers={'X-Auth-Token': 'xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx'}) or import requests
s = requests.Session()
s.headers.update({'X-Auth-Token': '2df4e55e-ff7f-4567-aa12-621051d98901'})
s.request(method="get",url='https://api.gotinder.com/profile') What does not work (HTTP 400) import pynder
session = pynder.Session(XAuthToken='xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx')
session._api._session.request(method="get",url='https://api.gotinder.com/profile',headers={'X-Auth-Token': 'xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx'}) |
@darkenedcolossal I guess you just committed your |
LOL, how can I invalidate it? :D |
@BenWhiteJam THX!!! |
Same for me, the request is working fine with the Xauth token (200), but I still get error HTTP 400 with the pynder session. Does anyone has a fix to this? |
@darkenedcolossal You override the correct headers when you do this. Your headers should be something like this HEADERS = {
'app_version': '6.9.4',
'platform': 'ios',
"content-type": "application/json",
"User-agent": "Tinder/7.5.3 (iPhone; iOS 10.3.2; Scale/2.00)",
"Accept": "application/json",
"XAuthToken": 'xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxx'
} |
This worked for me:
Actually I did not need these headers to get pynder working for me. Neccessary were the above changes, but removing all headers but xauth token did not seen to hurt. |
Solved. Although I'm using my own Tinder client written in Ruby, I've verified that using any Content-Type header other than Even though /auth/sms/send and /auth/sms/validate (or the Facebook equivalent) aren't affected, it looks like the /auth/login/sms endpoint requires content-type application/json. Thought I'd share. :) |
Who wants to sniff Tinder API of the latest official app (v3 api version), you can write to me and I'll explain how to do it. |
Hello does this library still work. I always have problems to log in. I am getting an 400 error with this code:
Does somebody have code that is working?
The text was updated successfully, but these errors were encountered: