Sha256: f4ebfef7caabfcd0aee57324a6647aded5d6de687c6550cd2b8536ce5da4dc4b
Contents?: true
Size: 1.32 KB
Versions: 1
Compression:
Stored size: 1.32 KB
Contents
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 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: false, defaultType: "draw", }; const fieldOptions = { dateFormat: "DD - MM - YYYY", }; const data = { subject: "The NDA we talked about", type: "request_signature", 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"], metadata: { "custom_id": 1234, "custom_text": "NDA #9", }, signingOptions, fieldOptions, testMode: true, }; const result = api.unclaimedDraftCreate(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/UnclaimedDraftCreate.js |