You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -335,10 +336,10 @@ By default, an API error will raise a models.SDKError exception, which has the f
335
336
336
337
When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `list_async` method may raise the following exceptions:
@@ -377,10 +378,10 @@ except models.SDKError as e:
377
378
378
379
You can override the default server globally by passing a server name to the `server: str` 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 names associated with the available servers:
379
380
380
-
| Name | Server | Variables|
381
-
| -----|------ | --------- |
382
-
|`production`|`https://api.polar.sh`| None|
383
-
|`sandbox`|`https://sandbox-api.polar.sh`| None|
381
+
| Name | Server |
382
+
| ------------|------------------------------ |
383
+
|`production`|`https://api.polar.sh`|
384
+
|`sandbox`|`https://sandbox-api.polar.sh`|
384
385
385
386
#### Example
386
387
@@ -404,7 +405,6 @@ if res is not None:
404
405
405
406
```
406
407
407
-
408
408
### Override Server URL Per-Client
409
409
410
410
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:
@@ -517,9 +517,9 @@ s = Polar(async_client=CustomClient(httpx.AsyncClient()))
517
517
518
518
This SDK supports the following security scheme globally:
"source": "from polar_sdk import Polar\n\ns = Polar(\n access_token=\"<YOUR_BEARER_TOKEN_HERE>\",\n)\n\nres = s.oauth2.clients.list()\n\nif res is not None:\n while True:\n # handle items\n\n res = res.next()\n if res is None:\n break"
0 commit comments