尝试使用 fullcalendar 检索 google 公共(public)日历提要时遇到 403 禁止错误。我注意到 fullcalendar 的演示中也存在这个问题,这是来自谷歌的变化吗?
http://fullcalendar.io/js/fullcalendar-2.2.0/demos/gcal.html
最佳答案
Google 已弃用并关闭 Calendar API v1 和 v2。 “公共(public)/完整” URL 不再可用。
FullCalendar 正在更新以支持 API v3。发布后,您将能够使用 v3 样式的 URL。首先在 Google Developer Console (https://console.developers.google.com) 中创建一个 API key 。然后在 FullCalendar 中使用以下 URL,替换您的日历 ID 和 API key :
https://www.googleapis.com/calendar/v3/calendars/{YOUR_CALENDAR_ID}/events?key={YOUR_API_KEY}
开发者在 issue 中评论说,更改应该在明天(11 月 19 日)发布。您可以在此问题中找到更多详细信息并跟踪进度:
https://code.google.com/p/fullcalendar/issues/detail?id=1526&colspec=ID Type Status Milestone Summary Stars
关于fullcalendar google 集成返回 403 错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26981661/