Skip to content

Instantly share code, notes, and snippets.

@bramses
Created August 9, 2021 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bramses/6634ddfdffde7e2c90985eda13d5ee6e to your computer and use it in GitHub Desktop.
Save bramses/6634ddfdffde7e2c90985eda13d5ee6e to your computer and use it in GitHub Desktop.
Receiving a Message on NodeJS with Twilio
router.post('/sms', async (req, res) => {
const twiml = new MessagingResponse();
await workflow(`${req.body.Body}`)
res.writeHead(200, {'Content-Type': 'text/xml'});
res.end('Message Received');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment