Class AsyncFormDetectionRunsClient


  • public class AsyncFormDetectionRunsClient
    extends java.lang.Object
    • Constructor Detail

      • AsyncFormDetectionRunsClient

        public AsyncFormDetectionRunsClient​(ClientOptions clientOptions)
    • Method Detail

      • create

        public java.util.concurrent.CompletableFuture<FormDetectionRun> create​(FormDetectionRunsCreateRequest request)
        Start detecting fields in a PDF form and return immediately with a form_detection_run resource, typically in the PROCESSING state.

        Poll GET /form_detection_runs/{id} until the status is PROCESSED or FAILED. When processing succeeds, output.schema contains an edit schema you can pass directly to POST /edit or POST /edit_runs.

      • create

        public java.util.concurrent.CompletableFuture<FormDetectionRun> create​(FormDetectionRunsCreateRequest request,
                                                                               RequestOptions requestOptions)
        Start detecting fields in a PDF form and return immediately with a form_detection_run resource, typically in the PROCESSING state.

        Poll GET /form_detection_runs/{id} until the status is PROCESSED or FAILED. When processing succeeds, output.schema contains an edit schema you can pass directly to POST /edit or POST /edit_runs.

      • retrieve

        public java.util.concurrent.CompletableFuture<FormDetectionRun> retrieve​(java.lang.String id)
        Retrieve the status and results of a form detection run.

        Use this endpoint to poll a run created with POST /form_detection_runs. When status is PROCESSED, output.schema contains the generated edit schema.

      • retrieve

        public java.util.concurrent.CompletableFuture<FormDetectionRun> retrieve​(java.lang.String id,
                                                                                 RequestOptions requestOptions)
        Retrieve the status and results of a form detection run.

        Use this endpoint to poll a run created with POST /form_detection_runs. When status is PROCESSED, output.schema contains the generated edit schema.

      • retrieve

        public java.util.concurrent.CompletableFuture<FormDetectionRun> retrieve​(java.lang.String id,
                                                                                 FormDetectionRunsRetrieveRequest request)
        Retrieve the status and results of a form detection run.

        Use this endpoint to poll a run created with POST /form_detection_runs. When status is PROCESSED, output.schema contains the generated edit schema.

      • retrieve

        public java.util.concurrent.CompletableFuture<FormDetectionRun> retrieve​(java.lang.String id,
                                                                                 FormDetectionRunsRetrieveRequest request,
                                                                                 RequestOptions requestOptions)
        Retrieve the status and results of a form detection run.

        Use this endpoint to poll a run created with POST /form_detection_runs. When status is PROCESSED, output.schema contains the generated edit schema.