Skip to content

Commit 6597cb7

Browse files
chore(docs): use environment variables for authentication in code snippets
1 parent d29939b commit 6597cb7

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
@@ -89,14 +89,15 @@ pip install increase[aiohttp]
8989
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
9090

9191
```python
92+
import os
9293
import asyncio
9394
from increase import DefaultAioHttpClient
9495
from increase import AsyncIncrease
9596

9697

9798
async def main() -> None:
9899
async with AsyncIncrease(
99-
api_key="My API Key",
100+
api_key=os.environ.get("INCREASE_API_KEY"), # This is the default and can be omitted
100101
http_client=DefaultAioHttpClient(),
101102
) as client:
102103
account = await client.accounts.create(

0 commit comments

Comments
 (0)