Sha256: 93b132ffdc5582c54fb557890a7e3eb3a86f2c342434328bb1d2b338d9ab72b6
Contents?: true
Size: 685 Bytes
Versions: 2
Compression:
Stored size: 685 Bytes
Contents
require "dropbox-sign" Dropbox::Sign.configure do |config| # Configure HTTP basic authorization: api_key config.username = "YOUR_API_KEY" end fax_api = Dropbox::Sign::FaxApi.new data = Dropbox::Sign::FaxSendRequest.new data.files = [File.new("example_signature_request.pdf", "r")] data.test_mode = true data.recipient = "16690000001" data.sender = "16690000000" data.cover_page_to = "Jill Fax" data.cover_page_message = "I'm sending you a fax!" data.cover_page_from = "Faxer Faxerson" data.title = "This is what the fax is about!" begin result = fax_api.fax_send(data) p result rescue Dropbox::Sign::ApiError => e puts "Exception when calling Dropbox Sign API: #{e}" end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dropbox-sign-1.8.0 | examples/FaxSend.rb |
dropbox-sign-1.7.0 | examples/FaxSend.rb |