A set of helpful functions for automating tasks in Google Drive and Google Docs. [WIP]
To get started:
- Make sure you have a working pipenv environment, with Python 3.7. Clone and run
pipenv install
. - Create a project and enable the Google Docs API:
- Create a project: https://console.cloud.google.com/cloud-resource-manager
- Visit https://console.developers.google.com/apis/library/docs.googleapis.com and enable the Docs API
- If there are creds available, download
mv
them tosecrets/client_id.json
- Otherwise, Click "CREATE CREDENTIALS":
- Which API are you using? Choose "Google Drive API"
- Where will you be calling the API from? Choose "Other UI (e.g. Windows, CLI tool)"
- What data will you be accessing? Choose "User Data"
- Follow remaining instructions
- Download** credentials and place them in
secrets/client_id.json
(Note that the name of the downloaded file may be different. It's the contents that are important.mv
the file to the path/name above.)
- Place a JSON file
config.json
insecrets/
with the following keys:{ "tbd_1" : "foo", "tbd_2" : ["bar", "baz", "quux"] }