module CsvToGsheet
Constants
- APPLICATION_NAME
- CREDENTIALS_PATH
- OOB_URI
- SCOPE
- TOKEN_PATH
The file token.yaml stores the user's access and refresh tokens, and is created automatically when the authorization flow completes for the first time.
Public Class Methods
check_token_files()
click to toggle source
# File lib/csv_to_gsheet.rb, line 125 def self.check_token_files if !File.exists? CREDENTIALS_PATH puts "No credentials.json equivalent file for your OAuth2 app exists at #{CREDENTIALS_PATH}" puts "" puts "Download your credentials.json file from https://developers.google.com/identity/sign-in/web/sign-in" puts "" puts "Move that credentials.json file to #{CREDENTIALS_PATH}" puts "" puts "Exiting now without connecting to Google's API" exit 1 end end