Method: HelloSign::Api::SignatureRequest#signature_request_files
- Defined in:
- lib/hello_sign/api/signature_request.rb
#signature_request_files(opts) ⇒ Object
Downloads a copy of the SignatureRequest documents.
452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 |
# File 'lib/hello_sign/api/signature_request.rb', line 452 def signature_request_files(opts) path = "/signature_request/files/#{opts[:signature_request_id]}" if opts[:file_type] path = path + "?file_type=#{opts[:file_type]}" end if opts[:get_url] separator = opts[:file_type].nil? ? '?' : '&' path = path + "#{separator}get_url=#{opts[:get_url]}" elsif opts[:get_data_uri] separator = opts[:file_type].nil? ? '?' : '&' path = path + "#{separator}get_data_uri=#{opts[:get_data_uri]}" end get(path)[:body] end |