Skip to content

Instantly share code, notes, and snippets.

@oluwaseye
Created October 21, 2022 19:30
Show Gist options
  • Save oluwaseye/6ae84acf3a4f8166e823d65f060ae593 to your computer and use it in GitHub Desktop.
Save oluwaseye/6ae84acf3a4f8166e823d65f060ae593 to your computer and use it in GitHub Desktop.
Telynx Inbound SMS/MMS
const express = require('express');
const bodyParser = require('body-parser');
const app = express();
app.use(bodyParser.json());
app.post('/webhook', (req, res) => {
const data = req.body.data.payload
console.log(`Start New message `);
console.log(data)
// console.log(data.from)
// console.log(data.text)
console.log(`End New message `);
});
const port = 5000;
app.listen(port, () => console.log(`App running on port ${port}`));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment