Sha256: 6b25876bf64bb6e5c7f56cb5b3ccb8899323414111c31160abe1b45b36186edb
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
import * as HelloSignSDK from "hellosign-sdk"; const api = new HelloSignSDK.SignatureRequestApi(); // Configure HTTP basic authorization: api_key api.username = "YOUR_API_KEY"; // or, configure Bearer (JWT) authorization: oauth2 // $config->setAccessToken("YOUR_ACCESS_TOKEN"); const signer1: HelloSignSDK.SubSignatureRequestTemplateSigner = { role: "Client", emailAddress: "george@example.com", name: "George", }; const cc1: HelloSignSDK.SubCC = { role: "Accounting", emailAddress: "accounting@example.com", }; const customField1: HelloSignSDK.SubCustomField = { name: "Cost", value: "$20,000", editor: "Client", required: true, }; const signingOptions: HelloSignSDK.SubSigningOptions = { draw: true, type: true, upload: true, phone: false, defaultType: HelloSignSDK.SubSigningOptions.DefaultTypeEnum.Draw, }; const data: HelloSignSDK.SignatureRequestSendWithTemplateRequest = { templateIds: ["c26b8a16784a872da37ea946b9ddec7c1e11dff6"], subject: "Purchase Order", message: "Glad we could come to an agreement.", signers: [ signer1 ], ccs: [ cc1 ], customFields: [ customField1 ], signingOptions, testMode: true, }; const result = api.signatureRequestSendWithTemplate(data); result.then(response => { console.log(response.body); }).catch(error => { console.log("Exception when calling HelloSign API:"); console.log(error.body); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hellosign-ruby-sdk-6.0.0.pre.beta | oas/examples/SignatureRequestSendWithTemplate.ts |