https://github.com/ccnmtl/gccnmtl_scripts
Scripts for manipulating our GApps using the API
https://github.com/ccnmtl/gccnmtl_scripts
Last synced: about 2 months ago
JSON representation
Scripts for manipulating our GApps using the API
- Host: GitHub
- URL: https://github.com/ccnmtl/gccnmtl_scripts
- Owner: ccnmtl
- Created: 2015-10-16T02:56:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-16T15:45:41.000Z (over 9 years ago)
- Last Synced: 2025-02-16T00:44:10.475Z (4 months ago)
- Language: Python
- Size: 1.73 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gccnmtl_scripts
Scripts for manipulating our GApps using the Google API.# gccnmtl_calendar_sharing.py
gccnmtl_calendar_sharing.py is intended for bulk sharing operations on GApps calendars.Our specific need right now is to share resource calendars form gccnmtl.columbia.edu (owned by [email protected]) with every member of the CTL staff in lionmail. We are doing this to avoid having to share event details publically. W/out explicit sharing of event details, the resource rooms will not auto-accept reservations. With explicit sharing, even free/busy can be private.
For reference, here is the GCal API refernece: https://developers.google.com/google-apps/calendar/v3/reference/?hl=en
## Usage:
./gccnmtl_calendar_sharing.py -c|--config \ [-a|--add] [-r|--remove] [-l|--list] [-h|--help]
Sample config file: https://github.com/ccnmtl/gccnmtl_scripts/blob/master/sample_config.ini
You will need to authenticate as [email protected] within the browser in order to run this script.
## Installation
git clone https://github.com/ccnmtl/gccnmtl_scripts
cd gccnmt_scripts
make bootstrap
Before running this script, you will need to download the credentials from the developer console in gccnmtl (https://console.developers.google.com/project/charged-thought-110002), and save them to a file called gccnmtl_scripts/client_secret.jsonas described here:
https://developers.google.com/google-apps/calendar/quickstart/python
FYI - (quickstart.py is included in this repo just to make sure you can get this running)
The first time you run this script, it should fire up a browser, where you can authenticate as [email protected]. The oauth credentials will be saved locally, so you won't be prompted to do this again. If you want to clear the auth credentials, type make clean-creds.