Back
Here is how you can access an AWS SNS post body with Express/Node.js assuming that you're using body-parser.
Just add the following lines to your app.js:
app.use(bodyParser.json());app.use(bodyParser.text({ type: 'text/plain' }));
app.use(bodyParser.json());
app.use(bodyParser.text({ type: 'text/plain' }));
Learn how we helped 50,000+ professionals like you !
31k questions
32.8k answers
501 comments
693 users