Sha256: 7a9c3d24680cb1ff4f6f7257bc494140b8b7371524f26fe088d6710eb400c91e
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 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 = { emailAddress: "jack@example.com", name: "Jack", order: 0, }; const signer2 = { emailAddress: "jill@example.com", name: "Jill", order: 1, }; const signingOptions = { draw: true, type: true, upload: true, phone: true, defaultType: "draw", }; const data = { clientId: "ec64a202072370a737edf4a0eb7f4437", title: "NDA with Acme Co.", subject: "The NDA we talked about", message: "Please sign this NDA and then we can discuss more. Let me know if you have any questions.", signers: [ signer1, signer2 ], ccEmailAddresses: [ "lawyer@hellosign.com", "lawyer@example.com", ], fileUrl: ["https://app.hellosign.com/docs/example_signature_request.pdf"], signingOptions, testMode: true, }; const result = api.signatureRequestCreateEmbedded(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/SignatureRequestCreateEmbedded.js |