2. Go to Google Developer Console website and get your credentials (client id
and client secret key
) and set environment variables in one of the following two ways;
export CLIENT_ID=yourclientid
export CLIENT_SECRET_KEY=yourclientsecretkey
- You can check if the environment variable has indeed been set by
echo $variable_name
CLIENT_ID=yourclientid
CLIENT_SECRET_KEY=yourclientsecretkey
- After setting the variables in the .env file, you can access them using Python's
os.environs
dictionary