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
*[update](docs/sdks/companies/README.md#update) - Update company
@@ -222,10 +223,10 @@ Handling errors in this SDK should largely match your expectations. All operatio
222
223
223
224
By default, an API error will throw a `models/errors/SDKError` exception. 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 `createApiKey` method throws the following exceptions:
You can override the default server globally by passing a server index to the `serverIndex` builder method 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:
CreateApiKeyResponse res = sdk.settings().createApiKey()
307
-
.request(req)
308
-
.call();
309
-
310
-
if (res.apiKeyDetails().isPresent()) {
311
-
// handle response
312
-
}
313
-
}
314
-
}
315
-
```
316
-
317
-
318
272
### Override Server URL Per-Client
319
273
320
-
The default server can also be overridden globally by passing a URL to the `serverURL` builder method when initializing the SDK client instance. For example:
274
+
The default server can also be overridden globally using the `.serverURL(String serverUrl)` builder method when initializing the SDK client instance. For example:
321
275
```java
322
276
packagehello.world;
323
277
@@ -362,9 +316,9 @@ public class Application {
362
316
363
317
This SDK supports the following security scheme globally:
364
318
365
-
| Name | Type | Scheme|
366
-
| ------------ | ------------|------------ |
367
-
|`authHeader`| apiKey | API key|
319
+
| Name | Type | Scheme |
320
+
| ------------ | ------ | ------- |
321
+
|`authHeader`| apiKey | API key |
368
322
369
323
You can set the security parameters through the `security` builder method when initializing the SDK client instance. For example:
|`companyAccessToken`|[Optional\<CompanyAccessToken>](../../models/shared/CompanyAccessToken.md)|:heavy_minus_sign:| OK | {<br/>"expiresIn": 86400,<br/>"accessToken": "string",<br/>"tokenType": "Bearer"<br/>} |
9
+
|`contentType`|*String*|:heavy_check_mark:| HTTP response content type for this operation ||
10
+
|`statusCode`|*int*|:heavy_check_mark:| HTTP response status code for this operation ||
11
+
|`rawResponse`|[HttpResponse\<InputStream>](https://docs.oracle.com/en/java/javase/11/docs/api/java.net.http/java/net/http/HttpResponse.html)|:heavy_check_mark:| Raw HTTP response; suitable for custom response parsing ||
0 commit comments