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 # ...