fbessez / Tinder

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

Uploading Picture #150

Open ghost opened 1 year ago

ghost commented 1 year ago

Is there a way to interact with the form to upload a picture?

They use form data and binary image


                    print("Sending Birth Date:")
                    response = session.post("https://api.gotinder.com/v2/onboarding/fields?requested=allow_email_marketing&requested=birth_date&requested=consents&requested=email&requested=gender&requested=interested_in_gender&requested=name&requested=photos&requested=relationship_intent&requested=sexual_orientations&requested=show_gender_on_profile&requested=show_orientation_on_profile&requested=show_same_orientation_first&requested=tinder_rules&requested=user_interests", 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)", "token": onboarding_token}, json={"fields": [{"name": "birth_date", "data": "1996-01-02"}]})

Sending profile birth date works fine using this way . Was wondering how to send a picture using the given information, thanks!

@DevelopPy#8161 (big d and big "p" from "py"