Skip to content
This repository was archived by the owner on Nov 23, 2024. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ request_token.authorize_url(:oauth_callback => 'http://yoursite.com/callback')
# This would be typically run in a Rails controller
hash = { oauth_token: session[:token], oauth_token_secret: session[:token_secret]}
request_token = OAuth::RequestToken.from_hash(consumer, hash)
oauth_verifier = params[:oauth_verifier]
result = request_token.get_access_token(:oauth_verifier => oauth_verifier)
oauth_token = params[:oauth_token]
result = request_token.get_access_token(:oauth_verifier => oauth_token)
```

Now that you have the oauth token and secret, you can create a new instance of the Dropbox::API::Client, like this:
Expand Down