But, committing an API key to your code repository is a common vector for credential compromise.
So we strongly recommend the use of the environment variables as a proactive key safety measure.
Please avoid commiting your API key to your code repository.
Set your PODONOS_API_KEY environment variable on your shell command.
Run the following command in your terminal, replacing YOUR_API_KEY with your API key.
Copy
Ask AI
export PODONOS_API_KEY="YOUR_API_KEY"
Once this is set, you can confirm that you have set your environment variable by using the following command.
Copy
Ask AI
echo $PODONOS_API_KEY
Now, in your code, you can skip setting the api_key while initialization.