Skip to content

Instantly share code, notes, and snippets.

@bramses
Created Aug 9, 2021
Embed
What would you like to do?
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