Sha256: 647d130d5ba9c8539874f9033ee88167acb2afa6b5ea5b5d01f7d5ca6a873e3e

Contents?: true

Size: 581 Bytes

Versions: 6

Compression:

Stored size: 581 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

oauth_api = Dropbox::Sign::OAuthApi.new

data = Dropbox::Sign::OAuthTokenRefreshRequest.new
data.refresh_token = "hNTI2MTFmM2VmZDQxZTZjOWRmZmFjZmVmMGMyNGFjMzI2MGI5YzgzNmE3"

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dropbox-sign-1.1.2 examples/OauthTokenRefresh.rb
dropbox-sign-1.1.1 examples/OauthTokenRefresh.rb
dropbox-sign-1.1.0 examples/OauthTokenRefresh.rb
dropbox-sign-1.0.1 examples/OauthTokenRefresh.rb
dropbox-sign-1.0.0 examples/OauthTokenRefresh.rb
dropbox-sign-1.0.0.pre.beta2301 examples/OauthTokenRefresh.rb