Reputation: 499
fullcalendar is not retrieving the events from google calendar, i read something that google calendar api does not support fullcalendar anymore?.i don't know if its true.
here is my code
$(function () {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaWeek,agendaDay'
},
buttonText: {
today: 'today',
month: 'month',
week: 'week',
day: 'day'
},
googleCalendarApiKey: 'myApi',
eventSources: {
googleCalendarId: '[email protected]'
}
})
});
UPDATE
make it work by using this code
eventSources: [
{ googleCalendarApiKey: 'your api key',
googleCalendarId: '[email protected]',
className: 'fc-event-email'}];
Upvotes: 2
Views: 1990
Reputation: 1035
From Nov 17th 2014, google shutdown V1 and V2 of their calendar API's.For full calendar to work with Google calendar upgrade to the latest version of FullCalendar or at least replace gcal.js with this file github.com/arshaw/fullcalendar/blob/v1.x/gcal.js . In the above code, you have to include googleCalendarApiKey and googleCalendarId inside eventSources. check this link fullcalendar.io/docs1/google_calendar for documentation
Upvotes: 1