class Google::APIClient::InstalledAppFlow

Small helper for the sample apps for performing OAuth 2.0 flows from the command line or in any other installed app environment.

This class is used in some sample apps and tests but is not really part of the client libraries, and probably does not belong here. As such, it is deprecated. If you do choose to use it, note that you must include the ‘launchy` gem in your bundle, as it is required by this class but not listed in the google-api-client gem’s requirements.

@example

flow = Google::APIClient::InstalledAppFlow.new(
  :client_id => '691380668085.apps.googleusercontent.com',
  :client_secret => '...',
  :scope => 'https://www.googleapis.com/auth/drive'
)
authorization = flow.authorize
Drive = Google::Apis::DriveV2
drive = Drive::DriveService.new
drive.authorization = authorization

@deprecated Use google-auth-library-ruby instead