Google Calendar feed reader - plugin to get upcoming events from a public google calendar
Demo
Default Options
{ calendarId:'en.usa#[email protected]', apiKey:'Public_API_Key', dateFormat: 'LongDate', errorMsg:'No events in calendar', maxEvents: 50, futureEventsOnly: true, sortDescending: true }
Example
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="jquery.googlecalreader-1.1.js" type="text/javascript"></script> <script type="text/javascript"> $(function() { $('#eventlist').gCalReader({ calendarId:'[email protected]', apiKey:'your_public_api_key'}); }); </script> <div id="eventlist"></div>
Uses Google Calendar api endpoint @
https://developers.google.com/google-apps/calendar/v3/reference/events/list