Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Commit 4639ea9

Browse files
committed
README
1 parent 8ea4b34 commit 4639ea9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ Draft Python API:
1717

1818
```python
1919
>>> import logging
20-
>>> logging.basicConfig(level="INFO")
20+
>>> import os
2121

22-
>>> import cads_api_client
23-
>>> client = cads_api_client.ApiClient()
22+
>>> from cads_api_client import ApiClient
23+
>>> logging.basicConfig(level="INFO")
24+
>>> client = ApiClient(url=os.getenv("CADS_API_URL"), key=os.getenv("CADS_API_KEY"))
2425
>>> client.check_authentication()
2526
{...}
2627

0 commit comments

Comments
 (0)