Skip to content

Commit 55cf613

Browse files
chore(docs): use environment variables for authentication in code snippets
1 parent 7e0136d commit 55cf613

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

104104
```python
105+
import os
105106
import asyncio
106107
from runloop_api_client import DefaultAioHttpClient
107108
from runloop_api_client import AsyncRunloop
108109

109110

110111
async def main() -> None:
111112
async with AsyncRunloop(
112-
bearer_token="My Bearer Token",
113+
bearer_token=os.environ.get("RUNLOOP_API_KEY"), # This is the default and can be omitted
113114
http_client=DefaultAioHttpClient(),
114115
) as client:
115116
devbox_view = await client.devboxes.create()

0 commit comments

Comments
 (0)