working on presentation

This commit is contained in:
Shivan Sivakumaran 2021-05-23 22:57:02 +12:00
parent 7d581d2f03
commit 4217c9d4e1
1 changed files with 16 additions and 7 deletions

View File

@ -91,14 +91,23 @@
- `.env` - `.env`
- `.gitignore` - `.gitignore`
</section> </section>
<section data-markdown> <section data-markdown>
```python ```
from dotenv import load_dotenv # .env
load_dotenv() API_KEY=xxxxxxxx
API_KEY = os.getenv('API_KEY') ```
```
</section> ```python
# tubestats/youtube_api.py
from dotenv import load_dotenv
load_dotenv()
API_KEY = os.getenv('API_KEY')
```
</section>
<section data-markdown> <section data-markdown>
## How does TubeStats work? ## How does TubeStats work?
### Part 2 of 2 ### Part 2 of 2