In [ ]:
import tinder_api
import fb_auth_token
In [ ]:
host = 'https://api.gotinder.com' #thanks to this line you do not need to import config.py or tinder_config_ex.py
In [ ]:
# Enter your facebook email
fb_username = 'email@gmail.com'
# Enter your facebook password
fb_password = 'password'
fb_access_token = fb_auth_token.get_fb_access_token(fb_username, fb_password)
fb_user_id = fb_auth_token.get_fb_id(fb_access_token)
In [ ]:
fb_access_token
In [ ]:
fb_user_id
In [ ]:
#tinder_auth_token = tinder_api.get_auth_token(config.fb_auth_token, config.fb_user_id)
tinder_api.get_auth_token(fb_access_token, fb_user_id)
In [ ]:
# To check you are authorized
# tinder_api.authverif()
In [ ]:
# Get Tinder Recommendations of people around you
recommendations = tinder_api.get_recommendations()
# print(recommendations['status']) # 200 = successs
# len(recommendations['results']) # len of batches are 12
recommendations
In [ ]:
# Get updates since certain date
tinder_api.get_updates("2017-11-18T10:28:13.392Z")
In [ ]:
# select one recommended individual
testid=recommendations['results'][0]['_id']
print(testid)
In [ ]:
# Retrieve profile from id
testperson=tinder_api.get_person(testid)
testperson
In [ ]:
# Can also play a bit with your own profile
myself = tinder_api.get_self()
for p in myself['photos']:
print(p['url'])
In [ ]:
myself
In [ ]:
# and maybe experiment a bit with your own gender ;)
tinder_api.change_preferences(gender_filter='1')
In [ ]:
# Like a user
tinder_api.like('5a10ae3c8802dc4401463712')
In [ ]:
# message a match
tinder_api.send_msg('59ff7c30117d37c0572338d55a10ae3c8802dc4401463712', 'Hi, boy! Gloria Tinder-Robot here')