class DropboxApi::Authenticator
Public Class Methods
new(client_id, client_secret)
click to toggle source
# File lib/dropbox_api/authenticator.rb, line 8 def initialize(client_id, client_secret) @auth_code = OAuth2::Client.new(client_id, client_secret, { authorize_url: 'https://www.dropbox.com/oauth2/authorize', token_url: 'https://api.dropboxapi.com/oauth2/token' }).auth_code end