Skip to content
This repository has been archived by the owner on Oct 17, 2023. It is now read-only.

Commit

Permalink
Add get_data_uri parameters to signature_request_files method
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoung488 committed Dec 10, 2018
1 parent 3da419c commit 28e0756
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/hello_sign/api/signature_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -380,9 +380,13 @@ def signature_request_files(opts)
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]
Expand Down

0 comments on commit 28e0756

Please sign in to comment.