Module: HelloSign::Api::UnclaimedDraft
- Included in:
- Client
- Defined in:
- lib/hello_sign/api/unclaimed_draft.rb
Overview
Contains all the api calls for the UnclaimedDraft resource. Take a look at our unclaimed draft document for more information about this.
Instance Method Summary collapse
- #create_embedded_unclaimed_draft(opts) ⇒ Object
-
#create_unclaimed_draft(opts) ⇒ HelloSign::Resource::UnclaimedDraft
Creates a new Draft that can be claimed using the claim URL.
Instance Method Details
#create_embedded_unclaimed_draft(opts) ⇒ Object
115 116 117 118 119 120 121 122 123 |
# File 'lib/hello_sign/api/unclaimed_draft.rb', line 115 def opts opts[:client_id] ||= self.client_id prepare_files opts if opts[:type] == 'request_signature' prepare_signers opts end HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create_embedded', :body => opts) end |
#create_unclaimed_draft(opts) ⇒ HelloSign::Resource::UnclaimedDraft
Creates a new Draft that can be claimed using the claim URL. The first authenticated user to access the URL will claim the Draft and will be shown either the “Sign and send” or the “Request signature” page with the Draft loaded. Subsequent access to the claim URL will result in a 404 not found. If the type is “send_document” then only the file parameter is required. If the type is “request_signature”, then the identities of the signers and optionally the location of signing elements on the page are also required.
63 64 65 66 67 68 69 70 |
# File 'lib/hello_sign/api/unclaimed_draft.rb', line 63 def create_unclaimed_draft opts prepare_files opts if opts[:type] == 'request_signature' prepare_signers opts end HelloSign::Resource::UnclaimedDraft.new post('/unclaimed_draft/create', :body => opts) end |