Sha256: a7e9bb9e85b2af1fa56c69e0758e59b2e7eeaf5f1a624a3179db8b7d6b9c35b7
Contents?: true
Size: 989 Bytes
Versions: 1
Compression:
Stored size: 989 Bytes
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 = { role: "Client", emailAddress: "george@example.com", name: "George", }; const signingOptions = { draw: true, type: true, upload: true, phone: false, defaultType: "draw", }; const data = { clientId: "ec64a202072370a737edf4a0eb7f4437", templateIds: ["c26b8a16784a872da37ea946b9ddec7c1e11dff6"], subject: "Purchase Order", message: "Glad we could come to an agreement.", signers: [ signer1 ], signingOptions, testMode: true, }; const result = api.signatureRequestCreateEmbeddedWithTemplate(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/SignatureRequestCreateEmbeddedWithTemplate.js |