import * as HelloSignSDK from "hellosign-sdk"; const api = new HelloSignSDK.UnclaimedDraftApi(); // Configure HTTP basic authorization: api_key api.username = "YOUR_API_KEY"; // or, configure Bearer (JWT) authorization: oauth2 // $config->setAccessToken("YOUR_ACCESS_TOKEN"); const data: HelloSignSDK.UnclaimedDraftEditAndResendRequest = { clientId: "ec64a202072370a737edf4a0eb7f4437", testMode: true, }; const signatureRequestId = "2f9781e1a83jdja934d808c153c2e1d3df6f8f2f"; const result = api.unclaimedDraftEditAndResend(signatureRequestId, data); result.then(response => { console.log(response.body); }).catch(error => { console.log("Exception when calling HelloSign API:"); console.log(error.body); });