Created
May 1, 2018 19:41
-
-
Save parterburn/40b23966a2fb3f58857b0a8617ecfaf0 to your computer and use it in GitHub Desktop.
This is a some sample code that will override the domain setting of adding video calls to every Google Calendar event. The important pieces are:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl 'https://www.googleapis.com/calendar/v3/calendars/[YOUR_WORK_EMAIL]/events?conferenceDataVersion=1' \ | |
-X POST \ | |
-H 'Authorization: Bearer [YOUR_BEARER_TOKEN]' \ | |
-H 'Accept: application/json' \ | |
-H 'Content-Type: application/json' \ | |
--data-binary '{"start":{"dateTime":"2018-05-02T12:00:00-07:00","timeZone":"America/Denver"},"end":{"dateTime":"2018-05-02T17:00:00-07:00","timeZone":"America/Denver"},"attendees":[{"email":"[email protected]"}],"conferenceData":{}}' \ | |
--compressed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment