Skip to content

Instantly share code, notes, and snippets.

View nickisnoble's full-sized avatar
🔬
Work smarter, not harder

Nick Noble nickisnoble

🔬
Work smarter, not harder
View GitHub Profile
@nickisnoble
nickisnoble / google-calendar-read-js.html
Created July 31, 2021 04:10 — forked from marchawkins/google-calendar-read-js
How to connect to the Google Calendar API via the Javascript Client Library to retrieve calendar events. The demo also employs Oauth2 authentication, so the script could read a logged in user's calendar. This demo **only** reads a public calendar. You need the calendar's id (from google) in your own code to retrieve any events. For more info, vi…
<div class="row">
<div class="col-md-2 col-sm-2 col-xs-12">
<button id="authorize-button" style="visibility: hidden" class="btn btn-primary">Authorize</button>
</div><!-- .col -->
<div class="col-md-10 col-sm-10 col-xs-12">
<script type="text/javascript">
// date functions
Date.prototype.getWeek = function(start) {
start = start || 0;