Skip to content

Latest commit

 

History

History
executable file
·
49 lines (34 loc) · 2.48 KB

File metadata and controls

executable file
·
49 lines (34 loc) · 2.48 KB

generatedDocuments

Available Operations

getV1GeneratedDocumentsDocumentTypeRequestUuid

Get a generated document given the request_uuid. The response will include the generation request's status and, if complete, the relevant document urls.

scope: generated_documents:read

Example Usage

import { Gusto } from "@speakeasy-sdks/gusto";
import {
  GetV1GeneratedDocumentsDocumentTypeRequestUuidRequest,
  GetV1GeneratedDocumentsDocumentTypeRequestUuidResponse,
} from "@speakeasy-sdks/gusto/dist/sdk/models/operations";

const sdk = new Gusto({
  security: {
    authorization: "",
  },
});
const documentType: string = "accusamus";
const requestUuid: string = "similique";

sdk.generatedDocuments.getV1GeneratedDocumentsDocumentTypeRequestUuid(documentType, requestUuid).then((res: GetV1GeneratedDocumentsDocumentTypeRequestUuidResponse) => {
  if (res.statusCode == 200) {
    // handle response
  }
});

Parameters

Parameter Type Required Description
documentType string ✔️ the type of document being generated
requestUuid string ✔️ The UUID of the Generated Document Request
config AxiosRequestConfig Available config options for making requests.

Response

Promise<operations.GetV1GeneratedDocumentsDocumentTypeRequestUuidResponse>