examples/OauthTokenRefresh.rb in dropbox-sign-1.1.2 vs examples/OauthTokenRefresh.rb in dropbox-sign-1.2.0
- old
+ new
@@ -1,14 +1,6 @@
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"