working on presentation
This commit is contained in:
parent
7d581d2f03
commit
4217c9d4e1
|
@ -92,11 +92,20 @@
|
||||||
- `.gitignore`
|
- `.gitignore`
|
||||||
</section>
|
</section>
|
||||||
<section data-markdown>
|
<section data-markdown>
|
||||||
|
```
|
||||||
|
# .env
|
||||||
|
|
||||||
|
API_KEY=xxxxxxxx
|
||||||
|
```
|
||||||
|
|
||||||
```python
|
```python
|
||||||
|
# tubestats/youtube_api.py
|
||||||
|
|
||||||
from dotenv import load_dotenv
|
from dotenv import load_dotenv
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
API_KEY = os.getenv('API_KEY')
|
API_KEY = os.getenv('API_KEY')
|
||||||
|
|
||||||
```
|
```
|
||||||
</section>
|
</section>
|
||||||
<section data-markdown>
|
<section data-markdown>
|
||||||
|
|
Loading…
Reference in New Issue