fullcalendar没有从Google日历获取事件 [英] fullcalendar not getting events from google calendar
问题描述
fullcalendar没有从google日历中检索事件,我读了一些Google日历api不支持fullcalendar的东西?.i不知道它的真实性。 >这里是我的代码
$(function(){
$('#calendar')。fullCalendar({
header:{
left:'prev,next today',
center:'title',
right:'month,agendaweek,agendaDay'
},
buttonText:{
今天:'今天',
月:'月',
星期:'星期',
日:'天'
} ,
googleCalendarApiKey:'myApi',
eventSources:{
googleCalendarId:'example@gmail.com'
}
})
});
更新
<通过使用此代码使其工作
eventSources:[
{googleCalendarApiKey:'your api key',
googleCalendarId:'email@gmail.com',
className:'fc-event-email'}];
从2014年11月17日起,google关机V1和V2他们的日历API's.For完整的日历与谷歌日历升级到最新版本的FullCalendar或至少用github.com/arshaw/fullcalendar/blob/v1.x/gcal.js替换gcal.js。在上面的代码中,你必须在eventSources中包含googleCalendarApiKey和googleCalendarId。检查此链接fullcalendar.io/docs1/google_calendar获取文档
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: 'example@gmail.com'
}
})
});
UPDATE
make it work by using this code
eventSources: [
{ googleCalendarApiKey: 'your api key',
googleCalendarId: 'email@gmail.com',
className: 'fc-event-email'}];
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
这篇关于fullcalendar没有从Google日历获取事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!