Skip to content

Instantly share code, notes, and snippets.

@udidahan
Created September 21, 2015 11:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save udidahan/6b40380c9c2145e12522 to your computer and use it in GitHub Desktop.
Save udidahan/6b40380c9c2145e12522 to your computer and use it in GitHub Desktop.
Events where Udi and other people in Particular are presenting
$(function () {
var now = new Date().toJSON().slice(0,10);
var events=[];
$.ajax({
type: 'POST',
url: "https://www.googleapis.com/calendar/v3/calendars/events@nservicebus.com/events?orderBy=startTime&singleEvents=true&timeMin=" + now + "T00%3A00%3A00Z&key=AIzaSyDJ29Ux6xcsL-y4aaAjGbKzCnj-skBUUBk",
dataType: 'jsonp',
success: function (jData) {
for(var i = 0; i < jData.items.length; i++) {
var item = jData.items[i];
var e = [];
var descr = item.description.split("\n");
e.push(GetPeriod(item.start, item.end));
e.push(item.summary);
e.push(descr[0]);//speaker
e.push(item.location);
e.push(descr[1]);//register
events.push(e);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment