GithubHelp home page GithubHelp logo

edorsey / hubot-twilio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jkarmel/hubot-twilio

0.0 2.0 0.0 101 KB

Twilio adapter for the valiant hubot.

Home Page: http://hubot.github.com

CoffeeScript 100.00%

hubot-twilio's Introduction

Hubot Twilio Adapter

Description

This is the Twilio adapter for hubot that allows you to send an SMS to your Hubot and he will send an SMS back with the response.

Installation

  • Add hubot-twilio as a dependency in your hubot's package.json
  • Install dependencies with npm install
  • Run hubot with bin/hubot -a twilio

Note if running on Heroku

You will need to change the process type from app to web in the Procfile.

Usage

You will need to set some environment variables to use this adapter.

Heroku

% heroku config:add HUBOT_SMS_FROM="+14156662671"

% heroku config:add HUBOT_SMS_SID="AC5d10e5624da757326d12f8d31c08c20b"

% heroku config:add HUBOT_SMS_TOKEN="4ada63e18146a204e468fb6289030231"

Non-Heroku environment variables

% export HUBOT_SMS_FROM="+14156662671"

% export HUBOT_SMS_SID="AC5d10e5624da757326d12f8d31c08c20b"

% export HUBOT_SMS_TOKEN="4ada63e18146a204e468fb6289030231"

Then you will need to set the HTTP endpoint on Twilio to point to your server and make sure the request type is set to GET. The endpoint should have /hubot/sms as the path.

Contribute

Here's the most direct way to get your work merged into the project.

  1. Fork the project
  2. Clone down your fork
  3. Create a feature branch
  4. Hack away and add tests, not necessarily in that order
  5. Make sure everything still passes by running tests
  6. If necessary, rebase your commits into logical chunks without errors
  7. Push the branch up to your fork
  8. Send a pull request for your branch

Copyright

Copyright © Tom Bell. See LICENSE for details.

hubot-twilio's People

Contributors

edorsey avatar tombell avatar

Watchers

James Cloos 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.