examples/OauthTokenGenerate.rb in dropbox-sign-1.1.2 vs examples/OauthTokenGenerate.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::OAuthTokenGenerateRequest.new
data.state = "900e06e2"
data.code = "1b0d28d90c86c141"