Module: HelloSign::Api::Embedded
- Included in:
- Client
- Defined in:
- lib/hello_sign/api/embedded.rb
Overview
Contains all the API calls for Embedded SignatureRequests. Take a look at our Embedded Signing Walkthrough (app.hellosign.com/api/embeddedSigningWalkthrough) for more information about this.
Instance Method Summary collapse
-
#get_embedded_sign_url(opts) ⇒ HelloSign::Resource::Embedded
Retrieves the sign_url for an Embedded SignatureRequest.
-
#get_embedded_template_edit_url(opts) ⇒ HelloSign::Resource::Embedded
Retrieves the edit_url for an Embedded Template.
Instance Method Details
#get_embedded_sign_url(opts) ⇒ HelloSign::Resource::Embedded
Retrieves the sign_url for an Embedded SignatureRequest.
40 41 42 |
# File 'lib/hello_sign/api/embedded.rb', line 40 def (opts) HelloSign::Resource::Embedded.new get("/embedded/sign_url/#{opts[:signature_id]}") end |
#get_embedded_template_edit_url(opts) ⇒ HelloSign::Resource::Embedded
Retrieves the edit_url for an Embedded Template.
58 59 60 61 62 63 64 65 |
# File 'lib/hello_sign/api/embedded.rb', line 58 def (opts) defaults = { skip_signer_roles: 0, skip_subject_message: 0, test_mode: 0 } opts = defaults.merge(opts) prepare_merge_fields opts HelloSign::Resource::Embedded.new post("/embedded/edit_url/#{opts[:template_id]}", body: opts) end |