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

Commit 28e0756

Browse files
committed
Add get_data_uri parameters to signature_request_files method
1 parent 3da419c commit 28e0756

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/hello_sign/api/signature_request.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,9 +380,13 @@ def signature_request_files(opts)
380380
if opts[:file_type]
381381
path = path + "?file_type=#{opts[:file_type]}"
382382
end
383+
383384
if opts[:get_url]
384385
separator = opts[:file_type].nil? ? '?' : '&'
385386
path = path + "#{separator}get_url=#{opts[:get_url]}"
387+
elsif opts[:get_data_uri]
388+
separator = opts[:file_type].nil? ? '?' : '&'
389+
path = path + "#{separator}get_data_uri=#{opts[:get_data_uri]}"
386390
end
387391

388392
get(path)[:body]

0 commit comments

Comments
 (0)