Method: Echosign::Client#mega_sign_form_data

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

#mega_sign_form_data(mega_sign_id, file_path = nil) ⇒ String

Retrieves library document audit trail file

Parameters:

  • (REQUIRED)

  • (defaults to: nil)

    File path where to save the CSV file. If no file path is given, nothing is saved to disk.

Returns:

  • Raw bytes representing CSV file



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

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