Sha256: 812efce53a253b05d6179ec15c911e1507eb3350a26923713254a2a4c630a32d
Contents?: true
Size: 1.16 KB
Versions: 2
Compression:
Stored size: 1.16 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::SubSignatureRequestTemplateSigner.new signer_1.role = "Client" signer_1.email_address = "jack@example.com" signer_1.name = "Jack" 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::SignatureRequestCreateEmbeddedWithTemplateRequest.new data.client_id = "ec64a202072370a737edf4a0eb7f4437" data.template_ids = ["c26b8a16784a872da37ea946b9ddec7c1e11dff6"] data.subject = "Purchase Order" data.message = "Glad we could come to an agreement." data.signers = [signer_1] data.signing_options = signing_options data.test_mode = true begin result = api.signature_request_create_embedded_with_template(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/SignatureRequestCreateEmbeddedWithTemplate.rb |
hellosign-ruby-sdk-6.0.0.pre.beta | oas/examples/SignatureRequestCreateEmbeddedWithTemplate.rb |