This plugin uses webhooks to post reminders from configured Google Calendar to your Mattermost channel.
Discontinued
Working Google Calendar plugin can be found at - https://github.com/mattermost/mattermost-plugin-google-calendar/tree/v0.2.0
Go to the GitHub releases tab and download the latest release for your server architecture. You can upload this file in the Mattermost system console to install the plugin.
We would need Google Oauth credentials before we can use the plugin. Below is the procedure on how to signup for Google Oauth credentials,
Go to Google Cloud Dashboard and create a new project.
After creating a project click on Go to APIs overview
card from the dashboard which will take you to the API dashboard.
Select Credentials
from the left menu
Now click on Create Credentials
dropdown and select Oauth client ID
option.
While creating the Oauth credentials, enter the values of Authorized Javascript Origins
as <Mattermost server URL>
and the value of Authorised redirect URIs
as <Mattermost server URL>/plugins/google-calendar/oauth/complete
.
After creating the Oauth client, copy the Client ID and secret.
Upload the plugin to Mattermost and go to Google Calendar Plugin settings
. Paste the client id and secret and select a user for the plugin to post event messages with.
Enable the plugin and you should be able to see event reminder notifications.
Clone the repo and make sure mattermost server
is up and running.
Use ngrok
or any other tunnel provider to expose the mattermost server port (8065) to Internet. The command to create a tunnel is ngrok http 8065
.
Above command provides a URL accessible from Internet. In plugin.go
in line #91, replace p.API.GetConfig()
with the URL.
In the same method, in line #96, replace *config.ServiceSettings.SiteURL
with config
.
Login to Google Cloud Console and create a new project.
Go to API library and make sure Google Calendar API is enabled.
Go to API and Services and select Credentials
tab from the left menu.
Now click on Create Credentials
dropdown and select Oauth client ID
option.
While creating the Oauth credentials, enter the values of Authorized Javascript Origins
as http://localhost:8065
and the value of Authorised redirect URIs
as http://localhost:8064/plugins/google-calendar/oauth/complete
.
After creating the Oauth client, copy the Client ID and secret.
Upload the plugin to Mattermost and go to Google Calendar Plugin settings
. Paste the client id and secret and select a user for the plugin to post event messages with.
Enable the plugin and you should be able to see event reminder notifications.