fbessez / Tinder

Official November 2019 Documentation for Tinder's API (wrapper included)
MIT License
837 stars 199 forks source link

send_otp_code not sending sms #108

Open mlisthenewcool opened 4 years ago

mlisthenewcool commented 4 years ago

Using functions from https://github.com/fbessez/Tinder/blob/master/phone_auth_token.py as follow :

phone_number = "+33000000000" log_code = send_otp_code(phone_number)

Gives me :

send_otp_code : {'meta': {'status': 200}, 'data': {'otp_length': 6, 'sms_sent': False}}

I've tried various phone number formats with spaces, dots, paranthesis and it does not work.

epicalanonhacker commented 4 years ago

The API is being Patched

Henshall commented 4 years ago

I got it to send me an sms with curl:

curl 'https://api.gotinder.com/v3/auth/login?locale=en' -H 'authority: api.gotinder.com' -H 'pragma: no-cache' -H 'cache-control: no-cache' -H 'x-supported-image-formats: webp,jpeg' -H 'funnel-session-id: 1da38d5a71afe004' -H 'persistent-device-id: 7dd5826b-8433-4543-bb4b-c9937e8c4205' -H 'tinder-version: 2.43.0' -H 'user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36' -H 'content-type: application/x-google-protobuf' -H 'user-session-id: null' -H 'accept: application/json' -H 'app-session-time-elapsed: 69641' -H 'x-auth-token: ' -H 'user-session-time-elapsed: null' -H 'platform: web' -H 'app-session-id: 7abcf985-3a0e-40fe-a6c7-d02fd30b1f7a' -H 'app-version: 1024300' -H 'origin: https://tinder.com' -H 'sec-fetch-site: cross-site' -H 'sec-fetch-mode: cors' -H 'sec-fetch-dest: empty' -H 'referer: https://tinder.com/' -H 'accept-language: en-US,en;q=0.9,fr;q=0.8' --data-binary $'\n\r\n\u000bYOURNUMBERHERE' --compressed

Can anyone translate this into php curl or ajax request? Ive tried to convert it myself but i have been running into problems and it just doesnt seem to get it to work.

Jennifer-Winter commented 3 years ago

I have the same issue. I've tried basically every single number format in existence but it still gives phone_number= "+447777777777" phone_number= "+44 07777777777" phone_number= "4407777777777" phone_number= "447777777777" phone_number= "+4407777777777" NOTHING works. I always get sms sent as false and print(log_code)=false Can someone please put an updated version of the code for phone_auth_token.py? you would be a saint! thank you

SeanLF commented 3 years ago

@Henshall... https://curl.trillworks.com allows you to

Convert curl syntax to Python, Ansible URI, MATLAB, Node.js, R, PHP, Strest, Go, Dart, JSON, Elixir, Rust

and more.

The following is the output for python using the requests library:

import requests

headers = {
    'authority': 'api.gotinder.com',
    'pragma': 'no-cache',
    'cache-control': 'no-cache',
    'x-supported-image-formats': 'webp,jpeg',
    'funnel-session-id': '1da38d5a71afe004',
    'persistent-device-id': '7dd5826b-8433-4543-bb4b-c9937e8c4205',
    'tinder-version': '2.43.0',
    'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36',
    'content-type': 'application/x-google-protobuf',
    'user-session-id': 'null',
    'accept': 'application/json',
    'app-session-time-elapsed': '69641',
    'x-auth-token': '',
    'user-session-time-elapsed': 'null',
    'platform': 'web',
    'app-session-id': '7abcf985-3a0e-40fe-a6c7-d02fd30b1f7a',
    'app-version': '1024300',
    'origin': 'https://tinder.com',
    'sec-fetch-site': 'cross-site\\',
    'sec-fetch-dest': 'empty',
    'referer': 'https://tinder.com/',
    'accept-language': 'en-US,en;q=0.9,fr;q=0.8',
}

params = (
    ('locale', 'en'),
)

data = '$\\n\\r\\n\\u000bYOURNUMBERHERE'

response = requests.post('https://api.gotinder.com/v3/auth/login', headers=headers, params=params, data=data)
ramola106 commented 3 years ago

I am also not getting the sms on my mobile. I am getting the below reponse send_otp_code : {'meta': {'status': 200}, 'data': {'otp_length': 6, 'sms_sent': False}}

RMatushkin commented 3 years ago

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. Email is in my profile.

lovetoburnswhen commented 3 years ago

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.

Please elaborate

RMatushkin commented 3 years ago

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.

Please elaborate

You can write me (email is in my profile).

ramola106 commented 3 years ago

Thanks for acknowledge I will check and let you know

Regards, Gajendra

On Sat, Jul 25, 2020 at 4:15 AM RMatushkin notifications@github.com wrote:

Who wants to sniff Tinder API of the latest official app (3 api version), you can write to me and I'll explain how to do it.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/fbessez/Tinder/issues/108#issuecomment-663762473, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANY26KJ5WWXUS4IXMMK5YUTR5IFHPANCNFSM4OOT3JKQ .

gelodefaultbrain commented 8 months ago

I am also not getting the sms on my mobile. I am getting the below reponse send_otp_code : {'meta': {'status': 200}, 'data': {'otp_length': 6, 'sms_sent': False}}

I am getting this with this endpoint "https://api.gotinder.com/v2/auth/login/sms" but I am not receiving any text messages