Method: Echosign::Client#get_widget_form_data

Defined in:
lib/echosign/widget/client.rb

#get_widget_form_data(widget_id, file_path = nil) ⇒ String

Note:

SEEMINGLY NOT YET IMPLEMENTED SERVER-SIDE

Retrieves data entered by the user into interactive form fields at the time they signed the widget

Parameters:

  • widget_id (String)
  • file_path (String) (defaults to: nil)

    File path where to save the document. If none is given, nothing will be saved to file.

Returns:

  • (String)

    Raw file stream



114
115
116
117
118
119
120
121
122
# File 'lib/echosign/widget/client.rb', line 114

def get_widget_form_data(widget_id, file_path = nil)
  response = request(:get_widget_form_data, widget_id)
  unless file_path.nil?
    file = File.new(file_path, 'wb')
    file.write(response)
    file.close
  end
  response
end