It's time to remove the hard-coded API keys, passwords, and endpoints from our .py file and move them into environment variables. The process will be slightly different depending on what your environment is.
1. Using what you know about Environment Variables (see Day 35), update your code to use environment variables for all sensitive data including:
APP_ID
API_KEY
SHEET_ENDPOINT
USERNAME
PASSWORD
TOKEN
HINT 1: You'll need to import the os module.
Here's how you would set environment variables
os.environ["APP_ID"] = APP_ID
and here is how you would get an environment variable
APP_ID = os.environ["APP_ID"] raises exception if key does not exist
APP_ID = os.environ.get("APP_ID") returns None if key does not exist
APP_ID = os.environ.get("APP_ID", Message) returns Message if key does not existSee Python | os.environ object
In PyCharm, you can add your environment variables under "Edit Configurations". If you click on the little symbol to the right under "Environment Variables, you will bring up a window where you can add the key-value pairs one by one. (you can also copy-paste all the environment variables at the same time).

2. In order to be able to post our workout data while we're out and about, it would be easier if we can access the console and run the code in Repl.it
However, because Repl.it projects are public, we don't want other people to see our API keys and secrets.
Use the Replit documentation to work out how to add environment variables to Replit and store your Environment Variables:

HINT 1: Environment variables are declared without spaces!
HINT 2: https://stackoverflow.com/questions/4906977/how-to-access-environment-variable-values