Create a gist now

Instantly share code, notes, and snippets.

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