Skip to content

Instantly share code, notes, and snippets.

@tanaikech
Created March 30, 2019 07:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tanaikech/608f71fb1fccd19d30d597d0f2c345f8 to your computer and use it in GitHub Desktop.
Save tanaikech/608f71fb1fccd19d30d597d0f2c345f8 to your computer and use it in GitHub Desktop.
Uploading File to Shared Folder using ggsrun

Uploading File to Shared Folder using ggsrun

Here, I would like to introduce a sample command. This is a sample command for uploading a file to a shared folder using ggsrun.

This situation supposes that the shared folder is https://drive.google.com/drive/folders/abcdefg?usp=sharing and the folder has the edit permission.

Sample command:

$ ggsrun u -f "sample.txt" -p "abcdefg" --serviceaccount "###JSON file of Service Account###"
  • If you have already used OAuth2, you can upload the file by ggsrun u -f "sample.txt" -p "###folderId###".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment