From 273be1333385ccda2cb3745984aaaf1e13addff8 Mon Sep 17 00:00:00 2001 From: Steve Bazyl Date: Thu, 19 Nov 2015 13:09:59 -0800 Subject: [PATCH] Fix CLI snippet in class docs Snippet was slightly outdated, based on an earlier revision. --- lib/googleauth/user_authorizer.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/googleauth/user_authorizer.rb b/lib/googleauth/user_authorizer.rb index 9ecd16c..21dc6d8 100644 --- a/lib/googleauth/user_authorizer.rb +++ b/lib/googleauth/user_authorizer.rb @@ -40,15 +40,14 @@ module Google # # credentials = authorizer.get_credentials(user_id) # if credentials.nil? - # url = authorizer.get_redirect_uri(user_id, - # nil, - # 'urn:ietf:wg:oauth:2.0:oob') + # url = authorizer.get_authorization_url( + # base_url: OOB_URI) # puts "Open the following URL in the browser and enter the " + # "resulting code after authorization" # puts url # code = gets - # creds = authorizer.get_and_store_credentials_from_code(user_id, - # code) + # credentials = authorizer.get_and_store_credentials_from_code( + # user_id: user_id, code: code, base_url: OOB_URI) # end # # Credentials ready to use, call APIs # ...