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
@@ -311,9 +312,9 @@ By default an API error will raise a `Errors\SDKException` exception, which has
311
312
312
313
When custom error responses are specified for an operation, the SDK may also throw their associated exception. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `createConnectSession` method throws the following exceptions:
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:
372
+
The default server can also be overridden globally using the `setServerUrl(string $serverUrl)` builder method when initializing the SDK client instance. For example:
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:
410
+
if ($response->connectSessionToken !== null) {
411
+
// handle response
412
+
}
413
+
```
384
414
<!-- End Server Selection [server] -->
385
415
386
416
<!-- Placeholder for Future Speakeasy SDK Sections -->
0 commit comments