build
directory by running ./gradlew build
on *nix systems or gradlew.bat
on Windows systems.
If you wish to build from source and publish the SDK artifact to your local Maven repository (on your filesystem) then use the following command (after cloning the git repo locally):
On *nix:
Name | Type | Scheme |
---|---|---|
apiKeyAuth | apiKey | API key |
apiKeyAuth
parameter must be set when initializing the SDK client instance. For example:
RetryConfig
object through the retryConfig
builder method:
models/errors/APIException
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 get
method throws the following exceptions:
Error Type | Status Code | Content Type |
---|---|---|
models/errors/ApiErrorResponse | 400, 500 | application/json |
models/errors/APIException | 4XX, 5XX | */* |
.serverIndex(int serverIdx)
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:
# | Server |
---|---|
0 | https://api.benzinga.com |
1 | https://api.benzinga.com/api/v1 |
2 | https://api.benzinga.com/api/v2 |
3 | https://api.benzinga.com/api/v2.1 |
4 | https://api.benzinga.com/api/v2.2 |
.serverURL(String serverUrl)
builder method when initializing the SDK client instance. For example: