Skip to content

Commit 97a777f

Browse files
chore(docs): use environment variables for authentication in code snippets
1 parent 738e9be commit 97a777f

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
@@ -96,14 +96,15 @@ pip install --pre browserbase[aiohttp]
9696
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
9797

9898
```python
99+
import os
99100
import asyncio
100101
from browserbase import DefaultAioHttpClient
101102
from browserbase import AsyncBrowserbase
102103

103104

104105
async def main() -> None:
105106
async with AsyncBrowserbase(
106-
api_key="My API Key",
107+
api_key=os.environ.get("BROWSERBASE_API_KEY"), # This is the default and can be omitted
107108
http_client=DefaultAioHttpClient(),
108109
) as client:
109110
session = await client.sessions.create(

0 commit comments

Comments
 (0)