boldsign
Version:
NodeJS client for boldsign
16 lines (14 loc) • 510 B
text/typescript
import { DocumentApi } from '../api/documentApi';
const documentApi = new DocumentApi();
documentApi.setApiKey("YOUR_API_KEY");
var documentId = "YOUR_DOCUMENT_ID";
var onBehalfOf = "YOUR_BEHALF_EMAIL";
async function downloadAuditLog() {
try {
await documentApi.downloadAuditLog(documentId, onBehalfOf);
console.log("Audit log downloaded successfully!");
} catch (error:any) {
console.error("Error occurred while calling the API:", error.message);
}
}
downloadAuditLog();