Sha256: 2ae2a1ac8a397edcb51c4dce9ff4181b0339d6d5cdaa0dd492e8935c3da74227

Contents?: true

Size: 646 Bytes

Versions: 15

Compression:

Stored size: 646 Bytes

Contents

require "dropbox-sign"

Dropbox::Sign.configure do |config|
  # Configure HTTP basic authorization: api_key
  config.username = "YOUR_API_KEY"

  # or, configure Bearer (JWT) authorization: oauth2
  # config.access_token = "YOUR_ACCESS_TOKEN"
end

template_api = Dropbox::Sign::TemplateApi.new

data = Dropbox::Sign::TemplateUpdateFilesRequest.new
data.files = [File.new("example_signature_request.pdf", "r")]

template_id = "5de8179668f2033afac48da1868d0093bf133266"

begin
  result = template_api.template_update_files(template_id, data)
  p result
rescue Dropbox::Sign::ApiError => e
  puts "Exception when calling Dropbox Sign API: #{e}"
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dropbox-sign-1.8.0 examples/TemplateUpdateFiles.rb
dropbox-sign-1.7.0 examples/TemplateUpdateFiles.rb
dropbox-sign-1.6.1 examples/TemplateUpdateFiles.rb
dropbox-sign-1.6.0 examples/TemplateUpdateFiles.rb
dropbox-sign-1.5.0 examples/TemplateUpdateFiles.rb
dropbox-sign-1.4.1 examples/TemplateUpdateFiles.rb
dropbox-sign-1.4.0 examples/TemplateUpdateFiles.rb
dropbox-sign-1.3.0 examples/TemplateUpdateFiles.rb
dropbox-sign-1.2.0 examples/TemplateUpdateFiles.rb
dropbox-sign-1.1.2 examples/TemplateUpdateFiles.rb
dropbox-sign-1.1.1 examples/TemplateUpdateFiles.rb
dropbox-sign-1.1.0 examples/TemplateUpdateFiles.rb
dropbox-sign-1.0.1 examples/TemplateUpdateFiles.rb
dropbox-sign-1.0.0 examples/TemplateUpdateFiles.rb
dropbox-sign-1.0.0.pre.beta2301 examples/TemplateUpdateFiles.rb