Git Product home page Git Product logo

plivo-sms-slack-hook's Introduction

Travis (.org) branch Codecov Code Climate maintainability Docker Pulls GitHub tag (latest by date)

Plivo SMS Slack Hook

Plivo hook 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:8080

A 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.

Prerequisites

  • OpenJDK 11
  • Docker >=17.x
  • Docker Compose >=2.3

Development

$ mvn clean package
$ docker-compose up -d

Maintainers

License

See the LICENSE.md file for details

plivo-sms-slack-hook's People

Contributors

build-failure avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.