Skip to content

Commit 0a5f54a

Browse files
Refactor configuration instructions in README
Updated configuration section to simplify usage and removed obsolete notes.
1 parent fe72421 commit 0a5f54a

1 file changed

Lines changed: 5 additions & 10 deletions

File tree

README.md

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,21 +73,16 @@ Direct TDS via ODBC is not used; SQL reads are executed via the Web API using th
7373
## Configuration Notes
7474

7575
- For Web API (OData), tokens target your Dataverse org URL scope: https://yourorg.crm.dynamics.com/.default. The SDK requests this scope from the provided TokenCredential.
76-
(Preprod environments may surface newest SQL subset capabilities sooner than production.)
7776

78-
### Configuration (DataverseConfig)
79-
80-
Pass a `DataverseConfig` or rely on sane defaults:
77+
### Configuration
8178

8279
```python
80+
from azure.identity import InteractiveBrowserCredential
8381
from dataverse_sdk import DataverseClient
84-
from dataverse_sdk.config import DataverseConfig
85-
86-
cfg = DataverseConfig() # defaults: language_code=1033
87-
client = DataverseClient(base_url="https://yourorg.crm.dynamics.com", config=cfg)
8882

89-
# Optional HTTP tunables (timeouts/retries)
90-
# cfg.http_retries, cfg.http_backoff, cfg.http_timeout
83+
base_url = "https://yourorg.crm.dynamics.com"
84+
credential = InteractiveBrowserCredential() # or DeviceCodeCredential(), ClientSecretCredential(...), etc.
85+
client = DataverseClient(base_url=base_url, credential=credential)
9186
```
9287

9388
## Quickstart

0 commit comments

Comments
 (0)