Documentation for the Document AI API Java SDK
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:
SpeakeasyHTTPClient.setRedactedHeaders
.
Another option is to set the System property -Djdk.httpclient.HttpClient.log=all
. However, this second option does not log bodies.
Name | Type | Scheme |
---|---|---|
apiKeyAuth | http | HTTP Bearer |
apiKeyAuth
parameter must be set when initializing the SDK client instance. For example:
next
method that can be called to pull down the next group of results. The next
function returns an Optional
value, which isPresent
until there are no more pages to be fetched.
Here’s an example of one such pagination call:
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 list
method throws the following exceptions:
Error Type | Status Code | Content Type |
---|---|---|
models/errors/BadRequestError | 400 | application/json |
models/errors/UnauthorizedError | 401 | application/json |
models/errors/TooManyRequestsError | 429 | application/json |
models/errors/InternalServerError | 500 | application/json |
models/errors/APIException | 4XX, 5XX | */* |