Does fullcalendar google integration return error 403?

I am experiencing a 403 forbidden error when trying to get a google calendar calendar channel using fullcalendar. I noticed that the problem exists in the full-screen demo - is this a change from google?

http://fullcalendar.io/js/fullcalendar-2.2.0/demos/gcal.html

+5
source share
3 answers

Google has deprecated and closed Calendar API v1 and v2. The public / full URL is no longer available.

FullCalendar is updated to support API v3. Once you exit, you can use the v3 style URL. First, create an API key in the Google Developer Console ( https://console.developers.google.com ). Then use the URL in FullCalendar, replacing your calendar id and API key:

https://www.googleapis.com/calendar/v3/calendars/{YOUR_CALENDAR_ID}/events?key={YOUR_API_KEY} 

The developer commented on the issue that the changes should be published tomorrow (November 19). You can find more information and track progress on this issue:

https://code.google.com/p/fullcalendar/issues/detail?id=1526&colspec=ID Type Status Status Star counting steps

+9
source

The problem is the Google JSON output of the Google Calendar API . FullCalendar converts feeds such as

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

in

 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 seems to be no indication that the specifications have changed. So I guess there is a problem on Google.

EDIT

More here

0
source

Adam updated the plugin to support the new Google Calendar API.
See the documentation here: http://fullcalendar.io/docs/google_calendar/

0
source

Source: https://habr.com/ru/post/1207071/


All Articles