From 762af97527a0792582bd03ef128b8a9541a1d469 Mon Sep 17 00:00:00 2001 From: Mike Lueders Date: Fri, 8 Mar 2024 16:07:08 -0600 Subject: [PATCH] remove server selection by index section of readme --- README.md | 35 ++--------------------------------- 1 file changed, 2 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 6315994..111e3d3 100644 --- a/README.md +++ b/README.md @@ -245,40 +245,9 @@ if res.carrier_account is not None: ``` - ## Server Selection -### Select Server by Index - -You can override the default server globally by passing a server index to the `server_idx: int` optional parameter when initializing the SDK client instance. The selected server will then be used as the default on the operations that use it. This table lists the indexes associated with the available servers: - -| # | Server | Variables | -| - | ------ | --------- | -| 0 | `https://api.goshippo.com` | None | - -#### Example - -```python -import shippo - -s = shippo.Shippo( - server_idx=0, - api_key_header="", -) - - -res = s.addresses.list_addresses(page=1, results=25, shippo_api_version='') - -if res.address_list_wrapper is not None: - # handle response - pass - -``` - - -### Override Server URL Per-Client - -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: +You can override the default server globally by passing a URL to the `server_url: str` optional parameter when initializing the SDK client instance. For example: ```python import shippo @@ -295,7 +264,7 @@ if res.address_list_wrapper is not None: pass ``` - + ## Custom HTTP Client