Skip to content

Instantly share code, notes, and snippets.

@parterburn
Created May 1, 2018 19:41
Show Gist options
  • Save parterburn/40b23966a2fb3f58857b0a8617ecfaf0 to your computer and use it in GitHub Desktop.
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:
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":"persontoinvite@host.com"}],"conferenceData":{}}' \
--compressed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment