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:
commit
3a55309671
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue