Merge pull request #258 from jasonwbarnett/fix-installed-app-example

updated example so that it works and is more relevant to the new api
This commit is contained in:
Steve Bazyl 2015-07-24 22:38:12 -07:00
commit 3a55309671
1 changed files with 4 additions and 2 deletions

View File

@ -23,13 +23,15 @@ module Google
# #
# @example # @example
# #
# client = Google::APIClient.new
# flow = Google::APIClient::InstalledAppFlow.new( # flow = Google::APIClient::InstalledAppFlow.new(
# :client_id => '691380668085.apps.googleusercontent.com', # :client_id => '691380668085.apps.googleusercontent.com',
# :client_secret => '...', # :client_secret => '...',
# :scope => 'https://www.googleapis.com/auth/drive' # :scope => 'https://www.googleapis.com/auth/drive'
# ) # )
# client.authorization = flow.authorize # authorization = flow.authorize
# Drive = Google::Apis::DriveV2
# drive = Drive::DriveService.new
# drive.authorization = authorization
# #
class InstalledAppFlow class InstalledAppFlow