Use Twilio to receive and download MMS messages. For a step-by-step tutorial see the Twilio docs.
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.
First you need to install Node.js.
To run the app locally:
-
Clone this repository and
cd
into itgit clone [email protected]:TwilioDevEd/receive-mms-node.git && \ cd receive-mms-node
-
Install dependencies
npm install -g yarn && \ yarn install
-
Copy the sample configuration file and edit it to match your configuration
$ cp .example.env .env
You can find your
TWILIO_ACCOUNT_SID
andTWILIO_AUTH_TOKEN
in your Twilio Account Settings. You will also need aTWILIO_PHONE_NUMBER
, which you may find here. -
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
-
Check it out at http://localhost:3000
That's it
You can run the tests locally by typing
yarn test
- No warranty expressed or implied. Software is as is. Diggity.
- MIT License
- Lovingly crafted by Twilio Developer Education.