Easy GCalendar – Google Calendar API setup

This guide explains how to create a Google Calendar API key and find
the Calendar ID needed by Easy GCalendar.

1. Enable the Google Calendar API

  1. Sign in to the Google Cloud Console
    and select an existing project or create a new one.
  2. Open APIs & Services ? Library, search for
    Google Calendar API, and click Enable.
    If it is already enabled, it appears under Enabled APIs & services.Google Calendar API in the enabled APIs list

 

 

 

 

 

 

 

 

 

 

 

 

 

2. Create an API key

1.  Open APIs & Services ? Credentials and choose
Create credentials ? API key.

Create credentials menu with API key option

 

 

 

 

 

 

 

 

 

2. Give the key a name. Under Select API restrictions,
select Google Calendar API and click OK.

Selecting Google Calendar API for the key

 

 

 

 

 

 

 

 

 

 

3. Under Application restrictions, select
IP addresses and enter the public outbound IP address
of your Joomla server. Easy GCalendar requests calendar data from the
server, so a website referrer restriction is not suitable for this key.
Ask your hosting provider for the outbound IP if needed.

API key application restriction options

 

 

 

 

 

 

 

 

 

 

 

4. Click Create and copy the key. Keep it private and do
not commit it to a repository. You can return to
Credentials to manage the key.

API key created dialog

 

 

 

 

 

 

 

API key listed under credentials

3. Make the calendar public and find its ID

  1. Open Google Calendar in a
    browser. Under My calendars, open the calendar’s
    Settings and sharing.
  2. Under Access permissions for events, enable
    Make available to public and choose
    See all event details. This makes the calendar’s event
    details publicly accessible; do not enable it for a private calendar.
    See Google’s sharing instructions.
  3. Under Integrate calendar, copy the Calendar ID.

4. Add the calendar in Joomla

In the Joomla administrator, open
Components ? Easy GCalendar ? Calendars ? New. Enter the
calendar name, Calendar ID and API Key,
then save.