Created
October 21, 2022 19:30
-
-
Save oluwaseye/6ae84acf3a4f8166e823d65f060ae593 to your computer and use it in GitHub Desktop.
Telynx Inbound SMS/MMS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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