https://github.com/nl2go/plivo-sms-slack-hook
Plivo hook to receive SMS messages and send them to a Slack channel.
https://github.com/nl2go/plivo-sms-slack-hook
docker java plivo-sms
Last synced: 4 months ago
JSON representation
Plivo hook to receive SMS messages and send them to a Slack channel.
- Host: GitHub
- URL: https://github.com/nl2go/plivo-sms-slack-hook
- Owner: nl2go
- License: mit
- Created: 2020-03-06T15:44:44.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-06T17:41:44.000Z (over 5 years ago)
- Last Synced: 2025-01-09T22:24:43.641Z (5 months ago)
- Topics: docker, java, plivo-sms
- Language: Java
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://travis-ci.org/nl2go/plivo-sms-slack-hook)
[](https://codecov.io/gh/nl2go/plivo-sms-slack-hook)
[](https://codeclimate.com/github/nl2go/plivo-sms-slack-hook)[
](https://hub.docker.com/r/nl2go/plivo-sms-slack-hook)
[](https://hub.docker.com/repository/docker/nl2go/plivo-sms-slack-hook/tags?page=1)# Plivo SMS Slack Hook
[Plivo hook](https://www.plivo.com/docs/sms/guides/receive-sms#set-up-a-web-server) to receive SMS messages and send them to a Slack channel.
## Usage
docker run -d nl2go/plivo-sms-slack-hook \
-e PLIVO_SMS_SLACK_HOOK_WEBHOOK_URL=https://hooks.slack.com/services/foo-bar \
-e PLIVO_SMS_SLACK_HOOK_TARGET_NUMBER=123123123 \
-p 8080:8080A message may be sent using `/messages` endpoint.
curl \
--request POST 'http://localhost:8080/messages?From=123&To=1&Text=HelloWorld' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode '='
## Configuration
Configuration is supported through environment variables.| Name | Description |
|------|-------------|
| `PLIVO_SMS_SLACK_HOOK_WEBHOOK_URL` | Slack incoming webhook URL. |
| `PLIVO_SMS_SLACK_HOOK_MESSAGE_TEMPLATE` | Slack webhook message template. |
| `PLIVO_SMS_SLACK_HOOK_TARGET_NUMBER` | Plivo managed phone number that is capable of receiving the SMS. Used as authorization verification. |Defaults may be found within [application.yml](src/main/resources/application.yml).
## Prerequisites
- OpenJDK 11
- Docker >=17.x
- Docker Compose >=2.3## Development
$ mvn clean package
$ docker-compose up -d## Maintainers
- [build-failure](https://github.com/build-failure)
## License
See the [LICENSE.md](LICENSE.md) file for details