Git Product home page Git Product logo

receive-mms-rails's Introduction

Twilio

Receive MMS: Process MMS messages received by the application using rails

About

Use Twilio to receive SMS and MMS messages. For a step-by-step tutorial see the Twilio docs.

Note: protect your webhooks

Twilio supports HTTP Basic and Digest Authentication. Authentication allows you to password protect your TwiML URLs on your web server so that only you and Twilio can access them.

Learn more about HTTP authentication here, which includes sample code you can use to secure your web application by validating incoming Twilio requests.

Local development

This project is built using the Ruby on Rails web framework and NodeJS to serve assets through Webpack.

  1. First clone this repository and cd into it

    $ git clone [email protected]:TwilioDevEd/receive-mms-rails.git
    $ cd receive-mms-rails
  2. Install Rails dependencies

    $ bundle install
  3. Install Node dependencies

    $ npm install
  4. Copy the sample configuration file and edit it to match your configuration

    $ cp .env.example .env

    You can find your TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN in your Twilio Account Settings. You will also need a TWILIO_NUMBER, which you may find here.

  5. Create database and run migrations

    $ bundle exec rails db:setup
  6. Make sure the tests succeed

    $ bundle exec rspec
  7. Run the server

    $ bundle exec rails s
  8. Expose your application to the wider internet using ngrok. This step is important because the application won't work as expected if you run it through localhost.

    $ ngrok http 3000

    Once ngrok is running, open up your browser and go to your ngrok URL. It will look something like this: http://9a159ccf.ngrok.io

    You can read this blog post for more details on how to use ngrok.

  9. Configure Twilio to call your webhooks

    You will also need to configure Twilio to call your application when calls are received on your TWILIO_NUMBER. The voice url should look something like this:

    http://6b5f6b6d.ngrok.io/mms_resources
    

How to Demo

  1. Send an MMS to your twilio number

  2. Access http://localhost:3000. You should see a list with all the resources sent through your MMS

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.

receive-mms-rails's People

Contributors

acamino avatar dependabot-preview[bot] avatar dependabot[bot] avatar dprothero avatar mmena1 avatar ronualdo avatar well1791 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

receive-mms-rails's Issues

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

    rack-mini-profiler (>= 2.3.0, <= 2.3.1) was resolved to 2.3.1, which depends on
      ruby (>= 2.4.0)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    bootsnap (>= 1.5.1, <= 1.7.2) was resolved to 1.7.2, which depends on
      ruby (>= 2.3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

    puma (>= 5.1.1, <= 5.2.2) was resolved to 5.2.2, which depends on
      ruby (>= 2.2)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    bootsnap (>= 1.5.1, <= 1.7.3) was resolved to 1.7.3, which depends on
      ruby (>= 2.3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

    twilio-ruby (>= 5.46.0, <= 5.48.0) was resolved to 5.48.0, which depends on
      ruby (>= 2.0.0)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    bootsnap (>= 1.5.1, <= 1.7.3) was resolved to 1.7.3, which depends on
      ruby (>= 2.3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

    puma (>= 5.1.1, <= 5.2.2) was resolved to 5.2.2, which depends on
      ruby (>= 2.2)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

    rails (>= 6.1.1, <= 6.1.3) was resolved to 6.1.3, which depends on
      ruby (>= 2.5.0)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

    puma (>= 5.1.1, <= 5.2.2) was resolved to 5.2.2, which depends on
      ruby (>= 2.2)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    bootsnap (>= 1.5.1, <= 1.7.2) was resolved to 1.7.2, which depends on
      ruby (>= 2.3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

    twilio-ruby (>= 5.46.0, <= 5.50.0) was resolved to 5.50.0, which depends on
      ruby (>= 2.0.0)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

    rack-mini-profiler (>= 2.3.0, <= 2.3.1) was resolved to 2.3.1, which depends on
      ruby (>= 2.4.0)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

    rack-mini-profiler (>= 2.3.0, <= 2.3.1) was resolved to 2.3.1, which depends on
      ruby (>= 2.4.0)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

    rails (>= 6.1.1, <= 6.1.3) was resolved to 6.1.3, which depends on
      ruby (>= 2.5.0)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

    rails (>= 6.1.1, <= 6.1.3) was resolved to 6.1.3, which depends on
      ruby (>= 2.5.0)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

    rails (>= 6.1.1, <= 6.1.3) was resolved to 6.1.3, which depends on
      ruby (>= 2.5.0)

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

Dependabot can't resolve your Ruby dependency files

Dependabot can't resolve your Ruby dependency files.

As a result, Dependabot couldn't update your dependencies.

The error Dependabot encountered was:

Bundler::VersionConflict with message: Bundler could not find compatible versions for gem "ruby":
  In Gemfile:
    ruby (~> 3.0)

    bootstrap (>= 4.5.3, <= 4.6.0) was resolved to 4.6.0, which depends on
      ruby (>= 2.3.3)

    pg was resolved to 1.2.3, which depends on
      ruby (>= 2.2, < 2.8.dev) x64-mingw32

If you think the above is an error on Dependabot's side please don't hesitate to get in touch - we'll do whatever we can to fix it.

View the update logs.

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.