Skip to content

Python library for generating access tokens for Tinder API, using Facebook or Phone authentication

License

Notifications You must be signed in to change notification settings

meister245/tinder-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tinder-token

Python library for generating access tokens for using Tinder API, using Facebook or Phone authentication.

Quick Start

Install the package:

pip install -U tinder-token

If you want to use Facebook authentication, install with the following:

pip install -U tinder-token[facebook]

CLI Script

A sample script is installed with the package. Follow the prompts in order to retrieve your access token.

./tinder-token

API - Facebook

The facebook.get_tinder_token function will return a tuple, which contains the tinder token and refresh token.

from tinder_token.facebook import TinderTokenFacebookV2

facebook = TinderTokenFacebookV2()

def sample_email_password(email: str, password: str) -> (str, str):
    return facebook.get_tinder_token(fb_email=email, fb_password=password)

def sample_facebook_token(fb_token: str) -> (str, str):
    return facebook.get_tinder_token(fb_token=fb_token)

API - Phone

from tinder_token.phone import TinderTokenPhoneV2

phone = TinderTokenPhoneV2()

def sample_phone(phone_number: str) -> str:
    phone.send_otp_code(phone_number)
    otp_code = input('code: ')

    refresh_token = phone.get_refresh_token(otp_code, phone_number)
    return phone.get_tinder_token(refresh_token)

About

Python library for generating access tokens for Tinder API, using Facebook or Phone authentication

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages