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