| Class | DropboxSession |
| In: |
build/dropbox-ruby-sdk-dist/lib/dropbox_sdk.rb
|
| Parent: | Object |
DropboxSession is responsible for holding OAuth information. It knows how to take your consumer key and secret and request an access token, an authorize url, and get an access token. You just need to pass it to DropboxClient after its been authorized.
Takes a serialized DropboxSession YAML String and returns a new DropboxSession object
Returns the access token. If this DropboxSession doesn‘t yet have an access_token, it requests one using the request_token generate from your app‘s token and secret. This request will fail unless your user has gone to the authorize_url and approved your request
This returns a request token. Requests one from the dropbox server using the provided application key and secret if nessecary.
serialize the DropboxSession. At DropboxSession‘s state is capture in three key/secret pairs. Consumer, request, and access. Serialize returns these in a YAML string, generated from a converted array of the form: [consumer_key, consumer_secret, request_token.token, request_token.secret, access_token.token, access_token.secret] access_token is only included if it already exists in the DropboxSesssion
Given a saved access token and secret, you set this Session to use that token and secret