Open Kanin-E opened 5 years ago
@Kanin-E Could you point me to the documentation page because I couldn't find it.
First of all when you are working with credentials, the thing that you must not do is that put your hard-coded credential in you source code for example.
# you must not do this
FACEBOOK_TOKEN = "MQi5a?OC*<}J*:3xbmgYrV`7ay]WEo)CpLT;RkR{SF,[tSBaW]Wxu~IpF*-"
tinder.get_image(FACEBOOK_TOKEN)
Instead, you do these
FACEBOOK_TOKEN = <fill your token>
tinder.get_image(FACEBOOK_TOKEN)
Or you can use environment variable
import os
FACEBOOK_TOKEN = os.getenv("FACEBOOK_TOKEN")
tinder.get_image(FACEBOOK_TOKEN)
Hey I don't get the second one. what is < >, can you provide me with keywords to search on google ?
Hey I don't get the second one. what is < >, can you provide me with keywords to search on google ?
I intentionally wrote it wrong to inform others that it will get replaced or it will not work. Nothing is fancy about < >
I try setting up environment variable by using:
export FACEBOOK_TOKEN = 'my token'
Although I can call it by echo FACEBOOK_TOKEN in terminal, I can't find it in python using os.environ. What did I do wrong ?
* 1. I think < > make the text inside it disappear on GitHub right ? * 1. I try setting up environment variable by using: export FACEBOOK_TOKEN = 'my token'
Although I can call it by echo FACEBOOK_TOKEN in terminal, I can't find it in python using os.environ. What did I do wrong ?
Solved
Hey! @thanakritjutha , I saw in the Tinder API that it's require Facebook token and Facebook id. Is it safe to provide these values to the API?