Skip to content

Commit 5527cac

Browse files
chore(docs): use environment variables for authentication in code snippets
1 parent b78de8a commit 5527cac

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
@@ -83,14 +83,15 @@ pip install orb-billing[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 orb import DefaultAioHttpClient
8889
from orb import AsyncOrb
8990

9091

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

0 commit comments

Comments
 (0)