Skip to content

Commit 29ae3a9

Browse files
chore(docs): use environment variables for authentication in code snippets
1 parent a7a6330 commit 29ae3a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

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

8787
```python
88+
import os
8889
import asyncio
8990
from lithic import DefaultAioHttpClient
9091
from lithic import AsyncLithic
9192

9293

9394
async def main() -> None:
9495
async with AsyncLithic(
95-
api_key="My Lithic API Key",
96+
api_key=os.environ.get("LITHIC_API_KEY"), # This is the default and can be omitted
9697
http_client=DefaultAioHttpClient(),
9798
) as client:
9899
card = await client.cards.create(

0 commit comments

Comments
 (0)