Skip to content

Commit ecac1f6

Browse files
feat: clean up environment call outs
1 parent 2677a96 commit ecac1f6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,14 @@ pip install onebusaway[aiohttp]
7979
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
8080

8181
```python
82-
import os
8382
import asyncio
8483
from onebusaway import DefaultAioHttpClient
8584
from onebusaway import AsyncOnebusawaySDK
8685

8786

8887
async def main() -> None:
8988
async with AsyncOnebusawaySDK(
90-
api_key=os.environ.get("ONEBUSAWAY_API_KEY"), # This is the default and can be omitted
89+
api_key="My API Key",
9190
http_client=DefaultAioHttpClient(),
9291
) as client:
9392
current_time = await client.current_time.retrieve()

0 commit comments

Comments
 (0)