/google-drive

A simple program for operating google drive with CUI

Primary LanguagePython

Program

google_drive.py

Service

Google cloud platform

Preparations

Set on the next screen Google Cloud Platform

  • client secret file.json
    • Get from the Authentication information in Google Cloud Platform
  • setting.yaml
    client_config_backend: settings
    client_config:
      client_id: should download client secret file. client id in file
      client_secret: should download client secret file. client client_secret in file 
    
    save_credentials: True
    save_credentials_backend: file
    save_credentials_file: credentials.json
    
    get_refresh_token: True
    
    oauth_scope:
    # If you set it, you can skip the approval page. 
    - xxxx
    - xxxx
        
  • credentials.json
    • It will be saved automatically. You don’t have to make any settings.
    • Need to renew when it expires.
  • URI

It is good to use the following settings in Authentication information.

URI → http://localhost:8080

reference