Class: Dropdown::Dropbox::Session
- Inherits:
-
Object
- Object
- Dropdown::Dropbox::Session
- Defined in:
- lib/dropdown/dropbox/session.rb
Instance Attribute Summary collapse
-
#authorize_url ⇒ Object
readonly
Returns the value of attribute authorize_url.
Instance Method Summary collapse
- #access_token(authorization_code) ⇒ Object
-
#initialize(app_key, app_secret) ⇒ Session
constructor
A new instance of Session.
Constructor Details
#initialize(app_key, app_secret) ⇒ Session
8 9 10 11 |
# File 'lib/dropdown/dropbox/session.rb', line 8 def initialize(app_key, app_secret) @flow = DropboxOAuth2FlowNoRedirect.new app_key, app_secret = @flow.start end |
Instance Attribute Details
#authorize_url ⇒ Object (readonly)
Returns the value of attribute authorize_url.
6 7 8 |
# File 'lib/dropdown/dropbox/session.rb', line 6 def end |
Instance Method Details
#access_token(authorization_code) ⇒ Object
13 14 15 |
# File 'lib/dropdown/dropbox/session.rb', line 13 def access_token() @flow.finish()[0] end |