UNPKG

boldsign

Version:

NodeJS client for boldsign

19 lines (16 loc) 680 B
import { DocumentApi } from '../api/documentApi'; import { RemoveAuthentication } from '../model'; const documentApi = new DocumentApi(); documentApi.setApiKey("YOUR_API_KEY"); var removeAuthentication = new RemoveAuthentication(); removeAuthentication.emailId = "david@cubeflakes.com"; var documentId = "YOUR_DOCUMENT_ID"; async function removeAuthenticationFromDocument() { try { await documentApi.removeAuthentication(documentId, removeAuthentication); console.log("Authentication removed successfully!"); } catch (error:any) { console.error("Error occurred while calling the API:", error.message); } } removeAuthenticationFromDocument();