Skip to content

Commit ab01c66

Browse files
chore(docs): use environment variables for authentication in code snippets
1 parent 8102591 commit ab01c66

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,15 @@ pip install brand.dev[aiohttp]
8383
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
8484

8585
```python
86+
import os
8687
import asyncio
8788
from brand.dev import DefaultAioHttpClient
8889
from brand.dev import AsyncBrandDev
8990

9091

9192
async def main() -> None:
9293
async with AsyncBrandDev(
93-
api_key="My API Key",
94+
api_key=os.environ.get("BRAND_DEV_API_KEY"), # This is the default and can be omitted
9495
http_client=DefaultAioHttpClient(),
9596
) as client:
9697
brand = await client.brand.retrieve(

0 commit comments

Comments
 (0)