Fix CLI snippet in class docs

Snippet was slightly outdated, based on an earlier revision.
This commit is contained in:
Steve Bazyl 2015-11-19 13:09:59 -08:00
parent 2be5bfe375
commit 273be13333
1 changed files with 4 additions and 5 deletions

View File

@ -40,15 +40,14 @@ module Google
# #
# credentials = authorizer.get_credentials(user_id) # credentials = authorizer.get_credentials(user_id)
# if credentials.nil? # if credentials.nil?
# url = authorizer.get_redirect_uri(user_id, # url = authorizer.get_authorization_url(
# nil, # base_url: OOB_URI)
# 'urn:ietf:wg:oauth:2.0:oob')
# puts "Open the following URL in the browser and enter the " + # puts "Open the following URL in the browser and enter the " +
# "resulting code after authorization" # "resulting code after authorization"
# puts url # puts url
# code = gets # code = gets
# creds = authorizer.get_and_store_credentials_from_code(user_id, # credentials = authorizer.get_and_store_credentials_from_code(
# code) # user_id: user_id, code: code, base_url: OOB_URI)
# end # end
# # Credentials ready to use, call APIs # # Credentials ready to use, call APIs
# ... # ...