Fix CLI snippet in class docs
Snippet was slightly outdated, based on an earlier revision.
This commit is contained in:
parent
2be5bfe375
commit
273be13333
|
@ -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
|
||||
# ...
|
||||
|
|
Loading…
Reference in New Issue