Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion api.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,11 @@ def _auth(self):
response = requests.post(self.BASE_URL + "auth", data=self.fb_auth)
if response.status_code == 200:
self.headers["X-Auth-Token"] = response.json()["token"]
print(self.headers["X-Auth-Token"])
print("Authenticated to Tinder 🔒🔥")
self.authed = True
else:
raise AuthenticationError("Hey your Tinder auth didn't work. Did you put your Facebook user id and auth token into {secrets_filename}?".format(secrets_filename=SECRETS_FILENAME))
raise AuthenticationError("Hey your Tinder auth didn't work. Did you put your Facebook user id and auth token into SECRETS.txt?")


def _get(self, url):
Expand Down
Loading