fullcalendar google integration returns a 403 error?

后端 未结 3 496
感动是毒
感动是毒 2021-02-06 14:48

I\'m experiencing a 403 forbidden error when trying to retrieve a google public calendar feed using fullcalendar. I notice the problem also exists on fullcalendar\'s demo is thi

3条回答
  •  孤城傲影
    2021-02-06 15:13

    The problem is with the Google Calendar API JSON Output. FullCalendar converts feeds like

    http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/basic
    

    into

    http://www.google.com/calendar/feeds/usa__en%40holiday.calendar.google.com/public/full?alt=json-in-script&callback=?
    

    in gcal.js on line 49

    url: sourceOptions.url.replace(/\/basic$/, '/full') + '?alt=json-in-script&callback=?',
    

    There does not seem to be any indication that the specs have changed. So, I assume that there is a problem somewhere in Google.

    EDIT

    More info here

提交回复
热议问题