https://github.com/sbcd90/slack-sendgrid-integration-example
slack sendgrid integration example
https://github.com/sbcd90/slack-sendgrid-integration-example
java sendgrid slack-events-api
Last synced: 4 days ago
JSON representation
slack sendgrid integration example
- Host: GitHub
- URL: https://github.com/sbcd90/slack-sendgrid-integration-example
- Owner: sbcd90
- Created: 2017-10-16T19:28:41.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-17T05:45:41.000Z (over 8 years ago)
- Last Synced: 2025-02-26T06:31:50.222Z (over 1 year ago)
- Topics: java, sendgrid, slack-events-api
- Language: Java
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
slack-sendgrid-integration-example
==================================
This project is an example of how to integrate slack events api with Sendgrid mail apis.
Here we show how for every file comment([link](https://api.slack.com/events/file_comment_added)) posted in slack, we email that immediately to the responsible
file owner's email address.
Setup
=====
- Create a slack app and get a slack application token as shown at this [link](https://api.slack.com/slack-apps).
- Register at sendgrid and get a sendgrid api key as shown at this [link](https://sendgrid.com/docs/Classroom/Send/How_Emails_Are_Sent/api_keys.html).
- Set the system environment variables **SLACK_TOKEN** and **SENDGRID_API_KEY**.
- Build the app using **mvn clean install**
- Use the maven jetty plugin to start the app **mvn jetty:run**
- Download ngrok from [here](https://ngrok.com/) to expose localhost to the web.
- Run the command **ngrok http 8080** to expose **http://localhost:8080** to web.
- Register this url as a callback url in the slack application and choose the file_comment
event to be subscribed.
- Install the app to your slack workspace.
Issues
======
In case there are issues please report them to Github issues.