From 4e60c356f167c1a916e59f03500198e8be03234a Mon Sep 17 00:00:00 2001 From: marvinscharle Date: Mon, 16 Mar 2015 16:37:11 +0100 Subject: [PATCH] Changed description to reflect real return parameters of the OAuth Service of Dropbox --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index ec5f06b..1a1ee07 100644 --- a/README.markdown +++ b/README.markdown @@ -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: