Skip to content

Latest commit

 

History

History
74 lines (53 loc) · 3.99 KB

File metadata and controls

74 lines (53 loc) · 3.99 KB

ReportExecutions

Overview

Available Operations

  • list - List executed reports

list

List all executed reports that have been generated.

Example Usage

package hello.world;

import com.gr4vy.sdk.Gr4vy;
import com.gr4vy.sdk.models.errors.*;
import com.gr4vy.sdk.models.operations.ListAllReportExecutionsRequest;
import com.gr4vy.sdk.models.operations.ListAllReportExecutionsResponse;
import java.lang.Exception;

public class Application {

    public static void main(String[] args) throws Exception {

        Gr4vy sdk = Gr4vy.builder()
                .merchantAccountId("<id>")
                .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
            .build();

        ListAllReportExecutionsRequest req = ListAllReportExecutionsRequest.builder()
                .build();


        sdk.reportExecutions().list()
                .callAsStream()
                .forEach((ListAllReportExecutionsResponse item) -> {
                   // handle page
                });

    }
}

Parameters

Parameter Type Required Description
request ListAllReportExecutionsRequest ✔️ The request object to use for the request.

Response

ListAllReportExecutionsResponse

Errors

Error Type Status Code Content Type
models/errors/Error400 400 application/json
models/errors/Error401 401 application/json
models/errors/Error403 403 application/json
models/errors/Error404 404 application/json
models/errors/Error405 405 application/json
models/errors/Error409 409 application/json
models/errors/HTTPValidationError 422 application/json
models/errors/Error425 425 application/json
models/errors/Error429 429 application/json
models/errors/Error500 500 application/json
models/errors/Error502 502 application/json
models/errors/Error504 504 application/json
models/errors/APIException 4XX, 5XX */*