Skip to content

Commit e734ea3

Browse files
authored
chore: update readme
1 parent 5dbcb8e commit e734ea3

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

README.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,24 @@ with Documenso(
402402
```
403403
<!-- End Error Handling [errors] -->
404404

405-
<!-- No Server Selection [server] -->
405+
<!-- Start Server Selection [server] -->
406+
## Server Selection
407+
### Override Server URL Per-Client
408+
The default server can also be overridden globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example:
409+
```python
410+
import documenso_sdk
411+
from documenso_sdk import Documenso
412+
import os
413+
with Documenso(
414+
server_url="https://app.documenso.com/api/v2-beta",
415+
api_key=os.getenv("DOCUMENSO_API_KEY", ""),
416+
) as documenso:
417+
res = documenso.documents.find(order_by_direction=documenso_sdk.OrderByDirection.DESC)
418+
# Handle response
419+
print(res)
420+
```
421+
<!-- End Server Selection [server] -->
422+
406423
<!-- No Custom HTTP Client [http-client] -->
407424

408425
<!-- Start Resource Management [resource-management] -->

0 commit comments

Comments
 (0)