Google Calendar Events Display
Categories
Component ID
2876048
Component name
Google Calendar Events Display
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
Drupal module to render Google Calendar Events as a block
Google Service Account
In order to make queries to your Google Calendar, you must register for an API key, create a Service Account, and download the credentials to your Drupal site. You register for API keys on the Google Developer Console.
This module is a "Server-to-Server" application; Drupal will be making requests as a user you specify in the module's settings. You will want to read up on how to set up OAuth 2.0 for your Google Service Account.
- https://developers.google.com/identity/protocols/OAuth2ServiceAccount
- https://developers.google.com/google-apps/calendar/quickstart/php
- https://developers.google.com/api-client-library/php/auth/service-accounts
Once you have a credentials.json file with your private key, you must place the file in your Drupal installation's /web/sites/default, next to settings.php.
The credentials.json file should look like this:
{
"private_key_id": "XXXXXX",
"private_key": "-----BEGIN PRIVATE KEY-----
XXXX
-----END PRIVATE KEY-----
",
"client_email": "someuser@developer.gserviceaccount.com",
"client_id": "someuser.apps.googleusercontent.com",
"type": "service_account"
}
