From 4639ea9e239bd1fdb8a0ae0f87fc617dad843ae0 Mon Sep 17 00:00:00 2001 From: malmans2 Date: Thu, 3 Oct 2024 11:40:36 +0200 Subject: [PATCH] README --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index bc9eb58..c1ae33a 100644 --- a/README.md +++ b/README.md @@ -17,10 +17,11 @@ Draft Python API: ```python >>> import logging ->>> logging.basicConfig(level="INFO") +>>> import os ->>> import cads_api_client ->>> client = cads_api_client.ApiClient() +>>> from cads_api_client import ApiClient +>>> logging.basicConfig(level="INFO") +>>> client = ApiClient(url=os.getenv("CADS_API_URL"), key=os.getenv("CADS_API_KEY")) >>> client.check_authentication() {...}