Skip to content

TwilioDevEd/receive-mms-node

Repository files navigation

Twilio

Recieve and Download MMS Messages. Powered by Twilio - Node.js/Express

Node.js CI

Use Twilio to receive and download 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, and check out our full guide to securing your Express application by validating incoming Twilio requests.

Local development

First you need to install Node.js.

To run the app locally:

  1. Clone this repository and cd into it

    git clone git@github.com:TwilioDevEd/receive-mms-node.git && \
    
    cd receive-mms-node
  2. Install dependencies

    npm install -g yarn && \
    yarn install
  3. Copy the sample configuration file and edit it to match your configuration

    $ cp .example.env .env

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

  4. Run the application

    yarn start

    Alternatively you might also consider using nodemon for this. It works just like the node command but automatically restarts your application when you change any source code files.

    yarn global add nodemon && \
    nodemon index.js 
  5. Check it out at http://localhost:3000

That's it

Run the tests

You can run the tests locally by typing

yarn test

Meta

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

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages