Sha256: 0bf23112d1137735a77e12bc0311c44633155f1a2cf24143b89bbe2490ef3186
Contents?: true
Size: 1.45 KB
Versions: 2
Compression:
Stored size: 1.45 KB
Contents
require "hellosign-ruby-sdk" HelloSign.configure do |config| # Configure HTTP basic authorization: api_key config.username = "YOUR_API_KEY" # or, configure Bearer (JWT) authorization: oauth2 # config.access_token = "YOUR_ACCESS_TOKEN" end api = HelloSign::SignatureRequestApi.new signer_1 = HelloSign::SubSignatureRequestSigner.new signer_1.email_address = "jack@example.com" signer_1.name = "Jack" signer_1.order = 0 signer_2 = HelloSign::SubSignatureRequestSigner.new signer_2.email_address = "jill@example.com" signer_2.name = "Jill" signer_2.order = 1 signing_options = HelloSign::SubSigningOptions.new signing_options.draw = true signing_options.type = true signing_options.upload = true signing_options.phone = true signing_options.default_type = "draw" data = HelloSign::SignatureRequestCreateEmbeddedRequest.new data.client_id = "ec64a202072370a737edf4a0eb7f4437" data.title = "NDA with Acme Co." data.subject = "The NDA we talked about" data.message = "Please sign this NDA and then we can discuss more. Let me know if you have any questions." data.signers = [signer_1, signer_2] data.cc_email_addresses = ["lawyer@hellosign.com", "lawyer@example.com"] data.file_url = ["https://app.hellosign.com/docs/example_signature_request.pdf"] data.signing_options = signing_options data.test_mode = true begin result = api.signature_request_create_embedded(data) p result rescue HelloSign::ApiError => e puts "Exception when calling HelloSign API: #{e}" end
Version data entries
2 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hellosign-ruby-sdk-6.0.0.pre.beta | examples/SignatureRequestCreateEmbedded.rb |
hellosign-ruby-sdk-6.0.0.pre.beta | oas/examples/SignatureRequestCreateEmbedded.rb |