Created
September 21, 2015 11:50
-
-
Save udidahan/6b40380c9c2145e12522 to your computer and use it in GitHub Desktop.
Events where Udi and other people in Particular are presenting
This file contains 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
$(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