@@ -24,8 +24,7 @@ A Python package allowing developers to connect to Dataverse environments for DD
2424- Optional pandas integration (` PandasODataClient ` ) for DataFrame based create / get / query.
2525
2626Auth:
27- - Credential is optional; if omitted, the SDK uses ` DefaultAzureCredential ` .
28- - You can pass any ` azure.core.credentials.TokenCredential ` you prefer; examples use ` InteractiveBrowserCredential ` for local runs.
27+ - Accept only an ` azure.core.credentials.TokenCredential ` credential.
2928- Token scope used by the SDK: ` https://<yourorg>.crm.dynamics.com/.default ` (derived from ` base_url ` ).
3029
3130## API Reference (Summary)
@@ -111,21 +110,13 @@ For upload files functionalities, run quickstart_file_upload.py instead
111110
112111### DataverseClient (recommended)
113112
114- Tip: You can omit the credential and the SDK will use ` DefaultAzureCredential ` automatically:
115-
116- ``` python
117- from dataverse_sdk import DataverseClient
118-
119- base_url = " https://yourorg.crm.dynamics.com"
120- client = DataverseClient(base_url = base_url) # uses DefaultAzureCredential by default
121- ```
122-
123113``` python
124- from azure.identity import DefaultAzureCredential
114+ from azure.identity import InteractiveBrowserCredential
125115from dataverse_sdk import DataverseClient
126116
127117base_url = " https://yourorg.crm.dynamics.com"
128- client = DataverseClient(base_url = base_url, credential = DefaultAzureCredential())
118+ credential = InteractiveBrowserCredential() # or DeviceCodeCredential(), ClientSecretCredential(...), etc.
119+ client = DataverseClient(base_url = base_url, credential = credential)
129120
130121# Create (returns list[str] of new GUIDs)
131122account_id = client.create(" account" , {" name" : " Acme, Inc." , " telephone1" : " 555-0100" })[0 ]
0 commit comments