Sha256: a97c4c86ac242f16e968d200a3dece7660b1cfb7edcb7542607d2fa0c6cd5ca1

Contents?: true

Size: 441 Bytes

Versions: 15

Compression:

Stored size: 441 Bytes

Contents

require 'oauth2'

module DropboxApi
  class Authenticator < OAuth2::Client
    extend Forwardable

    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

    def_delegators :@auth_code, :authorize_url, :get_token
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
dropbox_api-0.1.18 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.17 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.16 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.15 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.14 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.13 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.12 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.11 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.10 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.9 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.8 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.7 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.6 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.5 lib/dropbox_api/authenticator.rb
dropbox_api-0.1.4 lib/dropbox_api/authenticator.rb